Write a program to calculate the BMI of a person using the
formula BMI = weight/height2.
Answer Posted / nitin kalambe
void main()
{
float BMI,weight,height;
cout<<"Enter you weight and height"<<endl;
cin>>weight>>height;
BMI=weight/height*height;
cout<<"Your BMI is "<<BMI;
getch();
}
| Is This Answer Correct ? | 7 Yes | 6 No |
Post New Answer View All Answers
Evaulate: 22%5 a) 2 b) 4 c) 0
What do you mean by enumerated data type?
What is the use of 'this' pointer?
What is malloc in c++?
Do the names of parameters have to agree in the prototype, definition, and call to the function?
what is VOID?
What is the basic structure of c++ program?
When do we run a shell in the unix system? How will you tell which shell you are running?
How does list r; differs from list r();?
What is enum class in c++?
What is a c++ map?
How do you print a string on the printer?
What is an undefined reference/unresolved external symbol error and how do I fix it?
Is c++ slower than c?
What sorting algorithm does c++ use?