Advertisement
aungzayoo199651

mile to km (c)

Mar 29th, 2020
137
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C 0.24 KB | None | 0 0
  1. #include<stdio.h>
  2. #include<conio.h>
  3.  
  4. int main()
  5. {
  6.     float mi;
  7.     float km=1.609344;
  8.     printf("Please Enter mile: \n");
  9.     scanf("%f", &mi);
  10.     float result;
  11.     result= mi * km ;
  12.     printf("%f mi have %f km", mi,result);
  13. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement