提交时间:2020-08-22 10:09:28

运行 ID: 5990

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