提交时间:2023-12-22 15:46:00

运行 ID: 34435

#include<iostream> using namespace std; int main() { float m,h; cin>>m>>h; float BMI=m/(h*h); if(BMI<18.5){ cout<<"Underweight"; } else if(BMI<24){ cout<<"Normal"; } else{ printf("%.6g\n",BMI); cout<<"Overweight"; } return 0; }