home *** CD-ROM | disk | FTP | other *** search
/ The C Users' Group Library 1994 August / wc-cdrom-cusersgrouplibrary-1994-08.iso / listings / v_09_05 / 9n05022a < prev    next >
Text File  |  1991-03-18  |  459b  |  31 lines

  1.  
  2. #include <stdio.h>
  3.  
  4. main()
  5. {
  6.     int a[5][4] = {
  7.         { 1,  3,  5,  7},
  8.         { 0,  2,  4,  6},
  9.         {-4, -3, -2, -1},
  10.         {-2,  9, 12, 11},
  11.         {11, 13, 15, 17}
  12.     };
  13.  
  14.     int i, j;
  15.  
  16.     for (i = 0; i < 5; ++i) {
  17.         for (j = 0; j < 4; ++j)
  18.             printf("%4d", a[i][j]);
  19.         putchar('\n');
  20.     }
  21. }
  22.  
  23. output: <--Pasteup: replace this word with the typeset version of "Output:"
  24.  
  25.    1   3   5   7
  26.    0   2   4   6
  27.   -4  -3  -2  -1
  28.   -2   9  12  11
  29.   11  13  15  17
  30.  
  31.