求大神帮助 运行不了,自认没问题
#include <stdio.h>int main()
{
int a[3][4]={{3,0,4,5},{6,2,1,7},{4,1,5,8}};
int b[3][4]={{1,4,0,3},{2,5,1,6},{9,3,6,0}};
int c[3][4];
int i,j;
printf("array a:\n"); //输出矩阵A
for (i=0;i<3;i++)
{
for (j=0;i<4;j++)
{
printf("%5d",a[i][j]);
c[i][j]=a[i][j]+b[i][j]; //求和后矩阵
}
printf("\n");
}
printf("\narray b:\n");
for (i=0;i<3;i++)
{
for (j=0;j<4;j++)
{
printf("%5d",b[i][j]);
}
printf("\n");
}
printf("\narray C:\n");
for (i=0;i<3;i++)
{
for (j=0;j<4;j++)
{
printf("%5d",c[i][j]);
}
printf("\n");
}
return 0;
}