提交时间:2020-10-31 16:09:26

运行 ID: 8141

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