提交时间:2022-07-20 18:51:42

运行 ID: 29530

#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; }