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
Why pointer is used in c++?
Differentiate between the message and method in c++?
What is the use of c++ programming language in real life?
What is guard code in c++?
Can you help me with this one? Make a program that when a user inputed a Product Name, it will display its price, and when the user inputed the quantity of the inputed product, it will show its total price. The output must be like this: Product Name: Price: Quantity: Total Price: ..this is the list of products to be inputed: Cellphone - 1500 Washing Machine - 5200 Television - 6000 Refrigirator - 8000 Oven - 2000 Computer - 11000 thanks..:D
How is data hiding achieved in c++?
What is a sequence in c++?
C is to C++ as 1 is to a) What the heck b) 2 c) 10
Discuss the possibilities related to the termination of a program before entering the mainq method?
What is lvalue?
What is setiosflags c++?
Which programming language is best to learn first?
Comment on c++ standard exceptions?
Will the following program execute?
What causes a runtime error c++?