1. #include <iostream>
using namespace std;
int main()
{
int weight;
float height,BMI;
cout<<"Please enter your weight in pounds: ";
cin>>weight;
cout<<"nPlease enter your height in inches: ";
cin>>height;
BMI =weight*703/(height*height);
cout<<"nYour body mass Index is: "<<BMI;
if (BMI>25)
cout<<"nnYou are somewhat overweight.";
else if (BMI<18.5)
cout<<"nnYou are somewhat underweight.";
else if (BMI>18.5 && BMI <25)
cout<<"nnCongratulations! You are within a healthy weight
range.";
cin.get ();
cin.get ();
return 0;
}
Edit &
Run