Advertisement
kk258966

4/9 C++ 練習四

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