Write a C program to enter a distance into kilometers to meter to convert, feet, inches, and centimeter.

//kilometers to meter

#include <stdio.h> int main()  {  float km;  printf("Enter Length in KiloMeter : ");  scanf("%f",&km);  printf("\n %.2f KM = %.2f Meters",km,km*1000);  printf("\n %.2f KM = %.2f Feets",km,km*3280.84);  printf("\n %.2f KM = %.2f Inches",km,km*39370.08);  printf("\n %.2f KM = %.2f Centimeters",km,km*1000*100);  return 0; }

you can find more c programs and things here

http://projugaadu.com/category/topics/c-language/

Leave a Comment