Question: Initialize the two dimensional array of 3 by 4 with simple integer type data shown below. 10 20 20 30 30 40 40 50 30

Initialize the two dimensional array of 3 by 4 with simple integer type data shown below.

10

20

20

30

30

40

40

50

30

40

50

60

Then print the two dimensional array. But also print the sum of each row right after the last element in that row (same row), and print the sum of each column right underneath the last element in that column.

Your display should look similar to shown below with sr1-sr3 are the sum of the elements in each row, and sc1-sc4 are the sum of the elements of each column.

10

20

30

sc1

20

30

40

sc2

30

40

50

sc3

40

50

60

sc4

sr1

sr2

sr3

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!