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?

https://code.sololearn.com/cxTAmsrtz3Ka/?ref=app

16th Apr 2018, 9:42 AM
ARIF ANSARI
ARIF ANSARI - avatar
3 Antworten
+ 3
https://code.sololearn.com/c4yUo3OLoi9y
16th Apr 2018, 10:24 AM
John Wells
John Wells - avatar
+ 2
Thanks for helping... My doubt has been cleared... 😊😊😊
16th Apr 2018, 7:04 PM
ARIF ANSARI
ARIF ANSARI - avatar
+ 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]); }
16th Apr 2018, 10:23 AM
Luciano Ariel Caputi
Luciano Ariel Caputi - avatar