/*
#include <stdio.h>
int main()
{
int n;
do
{
printf("请输入正整数n(1 < n <= 6):");
scanf("%d", &n);
}
while (n <= 1 || n > 6);
int a[n][n], b[n][n];
for (int i = 0; i < n; i++)
{
for (int j = 0; j < n; j++)
{
a[i][j] = i * n + j + i;
}
}
for (int i = 0; i < n; i++)
{
for (int j = 0; j < n; j++)
{
b[j][i] = a[i][j];
}
}
printf("转置后的方阵:\n");
for (int i = 0; i < n; i++)
{
for (int j = 0; j < n; j++)
{
printf("%3d ", b[i][j]);
}
printf("\n");
}
return 0;
}
*/