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 >
Wrap
Text File
|
1991-03-18
|
459b
|
31 lines
#include <stdio.h>
main()
{
int a[5][4] = {
{ 1, 3, 5, 7},
{ 0, 2, 4, 6},
{-4, -3, -2, -1},
{-2, 9, 12, 11},
{11, 13, 15, 17}
};
int i, j;
for (i = 0; i < 5; ++i) {
for (j = 0; j < 4; ++j)
printf("%4d", a[i][j]);
putchar('\n');
}
}
output: <--Pasteup: replace this word with the typeset version of "Output:"
1 3 5 7
0 2 4 6
-4 -3 -2 -1
-2 9 12 11
11 13 15 17