#include <iostream>
using namespace std;
int main()
{
const int Lbs_per_stn = 14;
float kg;
float tl;
cout << "Enter your weight in Kilograms = " ;
cin >> kg ;
cout << "Enter your tall in a meter = " ;
cin >> tl;
//int stone = lbs/Lbs_per_stn;
int BMI = kg/(tl*tl);
//cout << endl << lbs << " pounds are " << stone << " stone, " << pounds << "pound(s).\n";
cout << endl << "This is your BMI " << BMI ;
system("pause");
return 0;
}
沒有留言:
張貼留言