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
How do I start a c++ project?
What are pointer-to-members in C++? Give their syntax.
Name the operators that cannot be overloaded in C++?
What is the difference between passing by reference and passing a reference?
What are the advantages of pointers?
What is atoi in c++?
What are activex and ole?
Which bit wise operator is suitable for turning off a particular bit in a number?
What is the difference between a definition and a declaration?
What c++ library is string in?
What are the various storage classes in C++?
Why we use #include iostream in c++?
What is buffer and example?
What is extern c++?
What is c++ similar to?