Write a program to calculate the BMI of a person using the
formula BMI = weight/height2.
Answer Posted / g.durga
main()
{
float bmi;
int weight,height;
printf(enter weight and height");
scanf("%d%d",&weight,&height);
bmi=weight/height;
print("%f",bmi);
getch();
}
| Is This Answer Correct ? | 12 Yes | 6 No |
Post New Answer View All Answers
What are the different types of comments allowed in c++?
What is boyce codd normal form in c++?
What is abstraction with real time example?
Comment on c++ standard exceptions?
What are the two shift operators and what are their functions?
Is main a class in c++?
What ANSI C++ function clears the screen a) clrscr() b) clear() c) Its not defined by the ANSI C++ standard
Explain some examples of operator overloading?
Is swift faster than c++?
What is the main use of c++?
Is it possible to write a c++ template to check for a function's existence?
Why should you learn c++?
What is class in c++ with example?
In what situations do you have to use initialization list rather than assignment in constructors?
What is the latest c++ version?