P5714 【深基3.例7】肥胖问题
#include<iostream>
using namespace std;
int main()
{
double m,h,BMI;
cin>>m>>h;
BMI = m / h / h;
if(BMI < 18.5)
{
cout<<"Underweight";
}
else if(BMI < 24)
{
cout<<"Normal";
}
else
{
cout<<BMI<<endl;
cout<<"Overweight"<<endl;
}
system("PAUSE");
}