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;
  7. cm=km*100*1000;
  8. inch=km*39370.08;
  9. feet=km*3280.84;
  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 0s 5308KB
stdin
100
stdout
Enter distance in km
 Distance of meter=100000.000000
 Distance of cm=10000000.000000
 Distance of inch=3937008.000000
 Distance of feet=328084.000000