#include<stdio.h>
main()
{
float km,m,cm,inch,foot;
printf("Enter the distance between the two cities in Km: ");
scanf("%f", &km);
inch = 39370*km;
foot = 3281*km;
cm= 100000*km;
m = 1000*km;
printf ("\nDistance converted to inches: %f", inch);
printf ("\nDistance converted to feet: %f", foot);
printf ("\nDistance converted to centimeters: %f", cm);
printf ("\nDistance converted to meters: %f", m);
}
main()
{
float km,m,cm,inch,foot;
printf("Enter the distance between the two cities in Km: ");
scanf("%f", &km);
inch = 39370*km;
foot = 3281*km;
cm= 100000*km;
m = 1000*km;
printf ("\nDistance converted to inches: %f", inch);
printf ("\nDistance converted to feet: %f", foot);
printf ("\nDistance converted to centimeters: %f", cm);
printf ("\nDistance converted to meters: %f", m);
}
No comments:
Post a Comment
kiss on google ads if you are anonymous because your ip is trackable.thank you.
......from.admin