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
What are static member functions?
How does code-bloating occur in c++?
What is a driver program?
Explain method of creating object in C++ ?
Explain some examples of operator overloading?
What are the characteristics of friend functions?
Is c++ vector a linked list?
write a corrected statement so that the instruction will work properly. if (4 < x < 11) y = 2 * x;
Can non graphic characters be used and processed in C++?
What are iterators in c++?
Explain the differences between private, public and protected and give examples.
What is a syntax in c++?
What is the latest c++ standard?
Can char be a number c++?
What is the full form of dos?