提交时间:2020-08-22 10:18:03
运行 ID: 6001
#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("Underweight"); }else if(bmi >= 24){ printf("%f\n",bmi); printf("Overweight"); }else{ printf("Normal"); } return 0; }