提交时间:2020-08-22 10:03:29
运行 ID: 5988
#include<iostream> using namespace std; int main() { int m; double t,h; cin>>m>>h; t=m/(h*h); if(t<18.5) cout<<"Underweight"; else if(18.5<=t&&t<24) cout<<"Normal"; else if(t>=24) { cout<<t<<endl<<"Overweight"; } return 0; }