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 do you mean by global variables?
Can there be at least some solution to determine the number of arguments passed to a variable argument list function?
What are structs in c++?
What are keywords in c++?
What is c++ programming language?
Which c++ operator cannot overload?
Describe private, protected and public – the differences and give examples.
What does new do in c++?
What do the keywords volatile and mean mutable?
Is dev c++ free?
Is c++ a good first language to learn?
Why is c++ a mid-level programming language?
Can you use the function fprintf() to display the output on the screen?
What are stacks?
Does improper inheritance have a potential to wreck a project?