void main() {
int i,j,s=1;
int m1[6][6]=
{
{5,3,2,7,8,1},
{3,7,2,3,2,6},
{9,1,3,2,4,1},
{5,3,7,5,9,3},
{0,3,5,1,2,8},
{7,5,7,2,9,0}
};
int m2[6][6]=
{
{5,4,2,1,9,2},
{9,5,6,2,8,9},
{3,5,8,3,4,1},
{9,5,0,3,2,3},
{2,7,4,5,4,7},
{2,5,3,4,1,9}
};
printf("Ischodnaia matrici:\nm1:\n");
for(i=0;i<6;i++) {
for(j=0;j<6;j++)
printf("%d ",m1[i][j]);
printf("\n");
}
printf("\nm2:\n");
for(i=0;i<6;i++) {
for(j=0;j<6;j++)
printf("%d ",m2[i][j]);
printf("\n");
}
for(i=0;i<6;i++) {
for(j=0;j<6;j++) s*=m2[i][j];
for(j=0;j<6;j++) m1[j][i]+=s;
s=1;
}
printf("\nPoluchennaia matrica:\n");
for(i=0;i<6;i++) {
for(j=0;j<6;j++)
printf("%d ",m1[i][j]);
printf("\n");
}
}