Here is the code for you:
Code:
#include <stdio.h>
int main()
{
int i,j;
int array1[3][3]= {{0,0,0},{0,12,36},{0,32,56}} ;
int sqr[3][3];
/* multiplication part */
for(i=0;i<3;i++)
{
for(j=0;j<3;j++){
sqr[i][j]=array1[i][0]*array1[0][j]+array1[i][1]*array1[1][j]+array1[i][2]*array1[2][j];
}
}
/* here is the printing part */
for(i=0;i<3;i++)
{
for(j=0;j<3;j++){
printf("%d\t",sqr[i][j]);
}
printf("\n");
}
return 0;
}
and the output is:
0 0 0
0 1296 2448
0 2176 4288
Remember: row * column!
(what sounds weird to me, if I write there array1[2][2], my compiler returns an error.. so I wrote there 3s and it works now.)