6 solutions
Information
- ID
- 392
- Time
- 1000ms
- Memory
- 256MiB
- Difficulty
- 6
- Tags
- # Submissions
- 354
- Accepted
- 113
- Uploaded By
#include using namespace std; int main(){ double m,h; cin>>m>>h; double BMI=1.0m/(hh); if(BMI<18.5){ cout<<"Underweight"<<endl; }else if(BMI>=18.5&&BMI<24){ cout<<"Normal"<<endl; }else if(BMI>=24){ cout<<BMI<<endl; cout<<"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.