提交时间:2020-08-22 10:19:55

运行 ID: 6002

#include<cstdio> #include<iostream> using namespace std; int main(){ double m, h, bmi; cin >> m >> h; bmi = m/(h*h); if(bmi < 18.5){ cout << "Underweight"; }else if(bmi >= 24){ cout << bmi << "Overweight"; }else{ cout << "Normal"; } return 0; }