提交时间:2020-08-22 16:24:57

运行 ID: 6120

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