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 is a breakpoint?
What are the advantages of c++ over c?
What's the hardest coding language?
How many characters are recognized by ANSI C++?
What's the "software peter principleā?
What is the syntax for a for loop?
List the advantages of inheritance.
What is c++ mutable?
What is the disadvantage of using a macro?
Write about the stack unwinding?
Differentiate between a constructor and a destructor in c++.
What is recursion?
What is virtual methods?
What does ios :: app do in c++?
What is the this pointer?