提交时间:2020-08-22 14:48:16

运行 ID: 6083

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