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. void main()

  4. {flloat height, weight, bmi;

  5. printf("enter height and weight");

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

  7. scanf("%d", &weight);

  8. bmi= ((weight/height)/height)*703;

  9. printf("the calculated bmi = %d", bmi);

  10. }

  11.  

  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