main()
{
int B[][3]={{1, 0, -2},
{0, 3, -1}};
int C[][2]={{0, 3},
{-2, -1},
{0, 4}};
int A[2][2]={{0, 0}, {0,0}};
int n1=2, n2=3, n3=2;
int i, j, k;
for( i=0; i%26lt;n1; i++)
for( k=0; k%26lt;n3; k++)
for( j=0; j%26lt;n2; j++)
(*(*(A+i)+k)) += (*(*(B+i)+j)) * (*(*(C+j)+k));
for(i=0; i%26lt;n1; i++)
{
for(j=0; j%26lt;n3; j++)
printf("%d ", A[i][j]);
printf("\n");
}
}
Subscribe to:
Post Comments (Atom)
No comments:
Post a Comment