This Program converts the value entered in Km to inches, centimetres, feet and metres.
The distance between two cities (in km.) is input through the keyboard.
Write a program to convert and print this distance in meters, feet, inches and centimetres.
1Km = 39370 inches
1Km = 3281 Feet
1Km = 100000 Cm
1Km = 1000 metres
printf("Enter the distance between the two cities in Km: ");
inch = 39370*km;
foot = 3281*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);