WU-WEN-CHUN

課程練習-09

Oct 22nd, 2014
154
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<stdlib.h>
  3.  
  4. int main(void){
  5.     int n=3,i,j,a;
  6.     printf("A\tA+2\tA+4\tA+6\n");
  7.     for(j=1;j<=5;j++){
  8.         printf("\n");
  9.    
  10.     for(i=1;i<=4;n+=2){
  11.         printf("%d\t",n);
  12.         i++;   
  13.     }
  14.     n-=5;
  15. }
  16. system("PAUSE");
  17. return 0;
  18.     }
Add Comment
Please, Sign In to add comment