int main()
{
int a[3][3] = {{1,0, 1}, {2, 2, 4},{1, 2, 3}};
int b[3][3] ={ { 2, 3, 1}, { 6, 6, 2 }, { 9, 9, 0 } };
int result[3][3];
double tmp;
for (int i=0; i<3; i++) //i = col
{
for (int k=0; k<3; k++)
{
tmp = a[i][k];
for (int j=0; j<3; j++) //j = row
{
result[i][j] += tmp * b[k][j];
printf("%d\t",result[i][j]);
}
}
}
}