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