A write code that sums each row in the array and displays


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

Request for Solution File

Ask an Expert for Answer!!
Basic Computer Science: A write code that sums each row in the array and displays
Reference No:- TGS0761187

Expected delivery within 24 Hours