Read the heights in inches and wieght in pounds

Read the heights in inches and wieght in pounds of an individual and compute and print their BMI=((weight/height)/height)*703

Questions by jovan

Showing Answers 1 - 2 of 2 Answers

#include
#include
void main
{
int h,w,bmi;
clrscr();
printf{"Enter your height in inches:"};
scanf{"%d",&h};
printf{"Enter your weight in pounds:"}
scanf{"%d",&w};
bmi=((w/h)/h)*703;
printf{"BMI=%d",&bmi};
getch();
}

  Was this answer useful?  Yes

Shikhar Singhal

  • Jun 10th, 2013
 

Code
  1.  

  2. #include

  3. "enter height and weight");

  4. scanf("%d", &height);

  5. scanf("%d""the calculated bmi = %d", bmi);

  6. }

  7.  

  Was this answer useful?  Yes

Give your answer:

If you think the above answer is not correct, Please select a reason and add your answer below.

 

Related Answered Questions

 

Related Open Questions