#include <stdio.h> int main() { int KM; float M,Feet, Inch; printf("Enter the Distance In KM :"); scanf("%d",&KM); M = KM * 1000; Feet = M * 3.280; Inch = Feet * 12; printf("Distance in Meter :%f\n",M); printf("Distance in Feet :%f\n",Feet); printf("Distance in Inch :%f" ,Inch); return 0; } |
Enter the Distance In KM :12 Distance in Meter :12000.000000 Distance in Feet :39360.000000 Distance in Inch :472320.000000 |