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


Please Help Members By Posting Answers For Below Questions

What is a breakpoint?

559


What are the advantages of c++ over c?

580


What's the hardest coding language?

572


How many characters are recognized by ANSI C++?

893


What's the "software peter principleā€?

620






What is the syntax for a for loop?

596


List the advantages of inheritance.

640


What is c++ mutable?

700


What is the disadvantage of using a macro?

589


Write about the stack unwinding?

626


Differentiate between a constructor and a destructor in c++.

560


What is recursion?

657


What is virtual methods?

657


What does ios :: app do in c++?

551


What is the this pointer?

633