8 solutions
Information
- ID
- 1342
- Time
- 1000ms
- Memory
- 256MiB
- Difficulty
- 4
- Tags
- (None)
- # Submissions
- 109
- Accepted
- 53
- Uploaded By
#include<bits/stdc++.h> using namespace std; int main(){ double m,h,bmi; cin>>m>>h; bmi=m/(h*h); if(bmi<18.5) cout<<"Underweight"<<endl; else if(bmi>=18.5&&bmi<24) cout<<"Normal"; else if(bmi>=24) cout<<bmi<<endl<<"Overweight"<<endl;
return 0;
}
By signing up a Hydro universal account, you can submit code and join discussions in all online judging services provided by us.