#include <stdio.h>
#include <conio.h>
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 Height 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 height is = %d feet %.1f inch",feet,inch);
getch();
}
#include <conio.h>
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 Height 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 height is = %d feet %.1f inch",feet,inch);
getch();
}
No comments:
Post a Comment
kiss on google ads if you are anonymous because your ip is trackable.thank you.
......from.admin