Write C Program to Find sum of each row and columns of a matrix
belongs to collection: C language matrix programs with an examples
All Answers
total answers (1)
belongs to collection: C language matrix programs with an examples
total answers (1)
I have used CodeBlocks compiler for debugging purpose. But you can use any C programming language compiler as per your availability.
Result:
Enter elements in matrix of size 3x3:
1
2
3
4
5
6
7
8
9
Sum of elements of row 1 = 6
Sum of elements of row 2 = 15
Sum of elements of row 3 = 24
Sum of elements of column 1 = 12
Sum of elements of column 2 = 15
Sum of elements of column 3 = 18
need an explanation for this answer? contact us directly to get an explanation for this answer