C program to add rows and columns of matrix

C program to add rows and columns of matrix

Output:

Enter the elements of array:
1 2 3
4 5 6
7 8 9
Row wise sum:
         The sum of row 0 is 6
         The sum of row 1 is 15
         The sum of row 2 is 24
Column wise sum:
         The sum of column 0 is 12
         The sum of column 1 is 15
         The sum of column 2 is 18

Implementation: