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 |
How many ways are there to initialize an int with a constant?
What does obj stand for?
What is size of null class?
What is #include iomanip?
make a middle node of doubly linklist to the top of the list
Can you be able to identify between straight- through and cross- over cable wiring? And in what case do you use straight- through and cross-over?
Find the second maximum in an array?
What are punctuators in c++?
What is the difference between a reference and a pointer?
Explain queue. How it can be implemented?
Explain how to initialize a const member data.
What is the purpose of template?