Golgappa.net | Golgappa.org | BagIndia.net | BodyIndia.Com | CabIndia.net | CarsBikes.net | CarsBikes.org | CashIndia.net | ConsumerIndia.net | CookingIndia.net | DataIndia.net | DealIndia.net | EmailIndia.net | FirstTablet.com | FirstTourist.com | ForsaleIndia.net | IndiaBody.Com | IndiaCab.net | IndiaCash.net | IndiaModel.net | KidForum.net | OfficeIndia.net | PaysIndia.com | RestaurantIndia.net | RestaurantsIndia.net | SaleForum.net | SellForum.net | SoldIndia.com | StarIndia.net | TomatoCab.com | TomatoCabs.com | TownIndia.com
Interested to Buy Any Domain ? << Click Here >> for more details...


Write a program to calculate the BMI of a person using the
formula BMI = weight/height2.

Answers were Sorted based on User's Feedback



Write a program to calculate the BMI of a person using the formula BMI = weight/height2...

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

Write a program to calculate the BMI of a person using the formula BMI = weight/height2...

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

Post New Answer

More C++ General Interview Questions

Why is main an int?

0 Answers  


Why do we use iterators?

0 Answers  


What is c++ 11 and c++ 14?

0 Answers  


Give an example of run-time polymorphism/virtual functions.

0 Answers  


What is c++ and its uses?

0 Answers  


Explain what data encapsulation is in c++?

0 Answers  


What does asterisk mean in c++?

0 Answers  


What does the following do: for(;;) ; a) Illegal b) Loops forever c) Ignored by compiler...not illegal

0 Answers  


Declare a class vehicle and make it an abstract data type.

0 Answers  


Is facebook written in c++?

0 Answers  


What is pointer to member?

0 Answers  


What is the identity function in c++? How is it useful?

0 Answers  


Categories