Advertisement
Guest User

Untitled

a guest
Dec 20th, 2014
185
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.32 KB | None | 0 0
  1. #include <stdio.h>
  2.  
  3. double m;
  4.  
  5. int main(){
  6.  
  7. printf("時間あたりのマイル数 -> ");
  8. scanf("%lf",&m);
  9. printf("時間あたりのキロメートル数 -> %f \n", (double)m / 0.6213712);
  10.  
  11. return(0);
  12.  
  13. }
  14.  
  15.  
  16. /*出力結果
  17. 時間あたりのマイル数 -> 13
  18. 時間あたりのキロメートル数 -> 20.921472
  19. */
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement