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 is the purpose of the "delete" operator?
How do you declare A pointer to function which receives an int pointer and returns a float pointer
What is an iterator?
What is object oriented programming (oop)?
What ANSI C++ function clears the screen a) clrscr() b) clear() c) Its not defined by the ANSI C++ standard
What is difference between malloc()/free() and new/delete?
What does new return if there is insufficient memory to make your new object?
Is c++ fully object oriented?
How many ways are there to initialize an int with a constant?
How do I write a c++ program?
What is a tuple c++?
Compare compile time polymorphism and Runtime polymorphism