Write a Program for Ratio of Height To weight
/*A program that ask user to input height in feet and inch, and weight in Kg and then convert height in inch and then in
to meter. Apter then convert height to meter and finally calculate the ratio of height to weight.
programmed by:
Name: Jitendr Yadav
Roll:16
Date:11 jan 2011 */
#include <stdio.h>
#include <conio.h>
#include <math.h>
void main()
{
int ft,in;
float m,ratio,Kg;
printf(“Enter your height in feet and inches\n”);
scanf(“%d%d”,&ft,&in);
printf(“Enter your weight in Kilogram:”);
scanf(“%f”,&Kg);
in=in+(ft*12);
m=in*0.0254;
ratio=Kg/pow(m,2);
printf(“The ratio of your height in meter(m) to weight in kilogram(Kg)= %f”,ratio);
getch();
}








