using namespace std;
int main()
{
float w, h, bmi;
cout<<"Enter Weight In Kg\n";
cin>>w;
cout<<"Enter height In Meters\n";
cin>>h;
bmi=w/(h*h);
cout<<bmi;
if (bmi<18.5)
cout<<"\n underweight";
if (bmi>18.5 && bmi<20.9)
cout<<"\n normal";
if (bmi>21.0 && bmi<23.9)
cout<<"\n obese";
return 0;
}
No comments:
Post a Comment
Must drop your comments about post.