#include <stdio.h>
int main (int argc, char *argv[])
{
int a[3][4] = {{1, 2, 3, 4},
{5, 6, 7, 8},
{9, 10, 11, 12}};
int i, j;
for (i = 0; i < 3; i++)
{
for (j = 0; j < 4; j++)
{
printf ("a[%i][%i]=%i\t", i
, j
, a
[i
][j
]); }
}
return 0;
}
I2luY2x1ZGUgPHN0ZGlvLmg+CgppbnQgbWFpbiAoaW50IGFyZ2MsIGNoYXIgKmFyZ3ZbXSkKewogIGludCBhWzNdWzRdID0ge3sxLCAgMiwgIDMsICA0fSwKICAgICAgICAgICAgICAgICB7NSwgIDYsICA3LCAgOH0sCiAgICAgICAgICAgICAgICAgezksIDEwLCAxMSwgMTJ9fTsKICBpbnQgaSwgajsKCiAgZm9yIChpID0gMDsgaSA8IDM7IGkrKykKICAgIHsKICAgICAgZm9yIChqID0gMDsgaiA8IDQ7IGorKykKICAgICAgICB7CiAgICAgICAgICBwcmludGYgKCJhWyVpXVslaV09JWlcdCIsIGksIGosIGFbaV1bal0pOwogICAgICAgIH0KICAgICAgcHJpbnRmICgiXG4iKTsKICAgIH0KCiAgcmV0dXJuIDA7Cn0=