Advertisement
kk258966

4/2 C++ 練習二

Apr 2nd, 2014
76
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C++ 0.37 KB | None | 0 0
  1. #include <stdio.h>
  2. #include <stdlib.h>
  3. int main(void)
  4. {
  5.  int f,c;
  6.  
  7.  for(c=1; c<=100; c++)
  8.  {
  9.           if(c%10==0)
  10.           {
  11.                      printf("%d度C : %.2f度F\n",c,(9.0*c)/5.0+32.0);
  12.                      printf("--------------------------\n");
  13.                      
  14.                      }
  15.        }
  16.  
  17.  
  18.     system("pause");
  19.     return 0;
  20. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement