Advertisement
apl-mhd

collaspe

Aug 7th, 2016
133
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C 0.45 KB | None | 0 0
  1. #include<stdio.h>
  2.  
  3. int main(){
  4.  
  5.     int number[3][3] = {1, 2, 3,
  6.                         4, 5, 6,
  7.                         7, 8, 9
  8.  
  9.                        };
  10.  
  11.     int i, j;
  12.  
  13.  
  14.  
  15.     for(i = 0; i < 3; i++){
  16.  
  17.  
  18.         for(j = 0; j < 3; j++){
  19.  
  20.             if(i == 1 || j == 1 ){
  21.  
  22.  
  23.                 continue;
  24.             }
  25.  
  26.             printf("%d ", number[i][j]);
  27.  
  28.         }
  29.  
  30.  
  31.         printf("\n ");
  32.  
  33.  
  34.  
  35.     }
  36.  
  37.  
  38.     return 0;
  39. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement