#include
void main()
{
float h,inch;
int feet;
clrscr();
printf("\n\n\n\t\t Conversion of Centimeters in Feets & Inches\n");
printf("\t\t Enter your Hieght in Centimeters = ");
scanf("%f",&h);
inch=(float)h/2.54;
feet=inch/12;
inch=(inch/12-feet)*12;
printf("\n\n\n\t\t Your hieght is = %d feet %.1f inch",feet,inch);
getch();
}
No comments:
Post a Comment