i,j,sum=0;//sum要初始化 int a[6][6]={0};//数组不能用变量做下标 printf("请输入方阶的阶数n<n<=n<=6>:\n");scanf("%d",&n);printf("请输入%d阶方阵各元素的值:\n",