0
I made this program very earlier, my question is how can I print the sum of column below the matrix A without transposing it?
3 Réponses
+ 3
https://code.sololearn.com/c4yUo3OLoi9y
+ 2
Thanks for helping... My doubt has been cleared... 😊😊😊
+ 1
printf("\nsum of column are as followes:\n");
int y[3];
for(i=0;i<3;i++)
{
for(j=0;j<3;j++)
{
C+=a[j][i];
y[i]=C;
printf(" %d",a[i][j]);
}
printf("\n");
C=0;
}
for (int z=0;z<3;z++){
printf(" %d",y[z]);
}