Write a program to calculate the BMI of a person using the
formula BMI = weight/height2.
Answers were Sorted based on User's Feedback
Answer / 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 |
Answer / 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 |
What does std :: flush do?
Which software is used to run c++ program?
Is arr and &arr are same expression for an array?
Can a class be static in c++?
What is nested class in c++?
What are the differences between the function prototype and the function defi-nition?
What is string in c++ programming?
C is to C++ as 1 is to a) What the heck b) 2 c) 10
What is the syntax for a for loop?
Do vectors start at 0?
What is meant by entry controlled loop? What all C++ loops are exit controlled?
if there is binary tree which one is the easiest way to delete all child node?