#include <stdio.h>
int main(){
int a[3][3],i,j,b[3][3],k,c[3][3];
for(i=0;i<3;i=i+1)
{ for(j=0;j<3;j=j+1)
{ scanf("%d",&a[i][j]);}}
for(i=0;i<3;i=i+1)
{ for(j=0;j<3;j=j+1)
{ scanf("%d",&b[i][j]);}
}
for(i=0;i<3;i=i+1)
{ for(j=0;j<3;j=j+1)
{ for(k=0;k<3;k=k+1)
{ c[i][j]=c[i][j]+(a[i][k]*b[k][j]);
} }
}
for(i=0;i<3;i=i+1)
{ for(j=0;j<3;j=j+1)
{ printf("%d\t",c[i][j]);}
printf("\n");}
}
To embed this project on your website, copy the following code and paste it into your website's HTML: