fork download
  1. #include<stdio.h>
  2. int main()
  3. {
  4. float km,meter,cm,feet,inch;
  5. printf("Enter the value of km:");
  6. scanf("%f",&km);
  7. meter=km*1000.0;
  8. cm=km*100000.0;
  9. inch=km*39370.0787;
  10. feet=km*3280.8399;
  11. printf("%f",meter);
  12. printf("%f",cm);
  13. printf("%f",inch);
  14. printf("%f",feet);
  15. return 0;
  16. }
  17.  
Success #stdin #stdout 0s 5320KB
stdin
100
stdout
Enter the value of km:100000.00000010000000.0000003937007.750000328084.000000