BMI CALCULATOR
#include <iostream>
#include <conio.h>
using namespace std;
void main()
{
float x,y,z,d;
cout<<"Enter mass in kg: ";
cin>>x;
cout<<"Enter Height in cm: ";
cin>>y;
z=y/100;
d=x/(z*z);
cout<<"Body Mass Index(BMI) = "<<d;
getche();
}
0 comments:
Post a Comment