SOURCE CODE OUTPUT
#include<iostream>
using namespace std;
int main()
{
float weight,height,bmi;
cout<<"Enter your weight(kg) ";
cin>>weight;
cout<<"Enter your height(meters) ";
cin>>height;
bmi=weight/(height*height);
cout<<"Body Mass Index = "<<bmi;
return 0;
}
using namespace std;
int main()
{
float weight,height,bmi;
cout<<"Enter your weight(kg) ";
cin>>weight;
cout<<"Enter your height(meters) ";
cin>>height;
bmi=weight/(height*height);
cout<<"Body Mass Index = "<<bmi;
return 0;
}
Any questions regarding to program please write in comments.
No comments:
Post a Comment