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 |
write a corrected statement in c++ so that the statement will work properly. x = y = z + 3a;
Is c++ used anymore?
What do you mean by inheritance in c++? Explain its types.
How long it will take to learn c++?
How do you initialize a class member, class x { const int i; };
What do you understand by a pure virtual member function?
What is OOPs
What is the Maximum Size that an Array can hold?
55 Answers Adobe, FutureSoft, HCL, Infosys, Satyam, TCS, Wipro,
What is split a string in c++?
What are the syntactic rules to be avoid ambiguity in multiple inheritance?
What is c++ and its features?
What parameter does the constructor to an ofstream object take?