fork download
  1. #include<stdio.h>
  2. int main(){
  3. float km,meter,cm,inch,feet;
  4. printf("Enter distance in km");
  5. scanf("%f",&km);
  6. meter=km*1000.0;
  7. cm=km*100000.0;
  8. inch=km*39370.0787;
  9. feet=km*3280.8399;
  10. printf("\n Distance of meter=%2f", meter);
  11. printf("\n Distance of cm=%2f", cm);
  12. printf("\n Distance of inch=%2f", inch);
  13. printf("\n Distance of feet=%2f", feet);
  14. return 0;
  15. }
Success #stdin #stdout 0.01s 5320KB
stdin
100
stdout
Enter distance in km
 Distance of meter=100000.000000
 Distance of cm=10000000.000000
 Distance of inch=3937007.750000
 Distance of feet=328084.000000