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