An application uses a two dimensional array defined as follows:
int arr[3][4];
Write a program to initialize this array with values 10.
a. Write code that sums each row in the array and displays the results.
b. Write code that sums each column in the array and displays the results.
Sample output:
The total for row 1 is 40
The total for row 2 is 40
The total for row 3 is 40
The total for column 1 is 30
The total for column 2 is 30
The total for column 3 is 30
The total for column 4 is 30