
Patrick B. answered 03/11/19
Math and computer tutor/teacher
using namespace std;
#include <iostream>
#include <math.h>
void Go()
{
int height_ft;
float height_in;
float weight;
cout << "Input the height in feet and inches :> ";
cin >> height_ft;
cin >> height_in;
do
{
cout << "input the weight in pounds :>";
cin >> weight;
} while (weight<=0);
double BMI = 703 * weight / pow(height_ft*12+height_in,2);
cout << " BMI = " << BMI << endl;
}
int main()
{
Go();
}