#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)
   {  c[i][j]=a[0][j]*b[i][0]+a[1][j]*b[i][1]+a[2][j]*b[i][2];
    } 
}
for(i=0;i<3;i=i+1)
{ for(j=0;j<3;j=j+1)
   {   printf("%d\t",c[i][j]);} 
printf("\n");}
}




Embed on website

To embed this project on your website, copy the following code and paste it into your website's HTML: