回复 5楼 icanbestrong
你是不是这个意思?
程序代码:
#include <stdio.h>
int main()
{
int i, j;
int a[4][4];
for (i = 0; i <= 2; ++i)
for (j = 0; j <= 2; ++j)
a[i][j] = i + j + 1;
for (i = 0; i <= 2; ++i, puts(""))
for (j = 0; j <= 2; ++j)
printf("%d ", a[i][j]);
return 0;
}