代码如下,输出结果总是错的,为什么啊
class Multiplication{
public static void main(String args[]){
int i,j,k;
int c[][] = new int[2][3];
int a[][]={{1,2,3},{1,3,1}};
int b[][] = new int[3][];
b[0] = new int[]{1,2,1};
b[1] = new int[]{1,1,2};
b[2] = new int[]{2,2,3};
for(i=0;i<2;i++){
for(j=0;j<3;j++){
c[i][j]=0;
for(k=0;k<3;k++){
c[i][j] = c[i][j] + a[i][k]*b[k][i];
}
}
}
for(i=0;i<2;i++){
for(j=0;j<3;j++){
if(j%3==0){
System.out.println();
}
System.out.print(c[i][j]);
}
System.out.println();
}
}
}