/*The distance between two cities (in km) is entered through the keyboard. Write a program to convert and print this distance in meters, feet ,inches and centimeters. Code for Kodes4u.blogspot.com*/
#include
#include
void main()
{
float dis_km;
float dis_met,dis_feet,dis_inch,dis_cm;
clrscr();
printf("\nEnter a distance:");
scanf("%f",&dis_km);
dis_met=1000.00*dis_km;
printf("\nDistance in meter=%f",dis_met);
dis_feet=3280.839*dis_km;
printf("\nDistance in feet=%f",dis_feet);
dis_inch=39370.0787*dis_km;
printf("\nDistance in inches=%f",dis_inch);
dis_cm=100000.00*dis_km;
printf("\nDistance in cm=%f",dis_cm);
getch();
}