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