Write a Program to find out inches meter cm from km
// This program is to find out inches meter cm from km
#include<stdio.h>
main()
{
float km,m,cm,inch,feet;
printf("Enter the distance in Kilometer \n");
scanf("%f",&km);
m=km*1000;
cm=m*100;
feet=cm/30.00;
inch=cm/2.5;
printf("The Distance in Centimeter = %f\n",cm);
printf("The Distance in Meter = %f\n",m);
printf("The Distance in Feet = %f\n",feet);
printf("The Distance in Inches = %f\n",inch);
}
/*
INPUT:
Enter the distance in Kilometer
234
OUTPUT:
The Distance in Centimeter = 23400000.000000
The Distance in Meter = 234000.000000
The Distance in Feet = 780000.000000
The Distance in Inches = 9360000.000000
*/
Comments
Post a Comment