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 |
Is there finally in c++?
throw Can constructors exceptions?
i have given a project to create examination seating plan system in c++. so can anyone send me the answer of this question quickly??????
what is multi-threading in C++?
What is command line arguments in C++? What are its uses? Where we have to use this?
Difference between a copy constructor and an assignment operator.
What is an iterator class in c++?
Declare a class vehicle and make it an abstract data type.
How does a copy constructor differs from an overloaded assignment operator?
How a macro differs from a template?
in C++ , the word plus plus who found this?
What is difference between class and function?