提交时间:2020-08-22 10:11:41

运行 ID: 5995

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