提交时间:2020-08-22 10:14:25

运行 ID: 5997

#include<cstdio> #include<iostream> using namespace std; int main(){ double m, h, bmi; cin >> m >> h; bmi = m/(h*h); if(bmi < 18.5){ printf("Undreweight"); }else if(bmi >= 24){ printf("%.3f\n",bmi); printf("Overweight"); }else{ printf("Normal"); } return 0; }