Advertisement
Istanvir389

KM2M_M2KM

Jul 19th, 2017
107
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.30 KB | None | 0 0
  1. #include<stdio.h>
  2.  
  3. int main()
  4. {
  5.  
  6. float km,m;
  7. printf("Enter the number of m ==");
  8. scanf("%f",&m);
  9. printf("Enter the number of km==");
  10. scanf("%f",&km);
  11. m=km*1000;
  12. km=m/1000;
  13. printf("The kilometer is %f",km);
  14. printf("\nThe meter is %f",m);
  15. return 0;
  16.  
  17. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement