#includevoid main(){int a[3][4]={3,5,6,8,2,1,4,9,8,7,1,6};int i,j,sum;for(i=0;i<3;i++){ for(j=0;j<4;j++) {printf("%4d",a[j]); } printf("\n");}printf("sum of the line:\n");for(i=0;i<3;i++){ for(j=0,sum=0;j<4;j++) {sum=sum+a[j]; } printf("The Line%d's sum:%d\n",i+1,sum);...
|