allRowsSum

Complete the method allRowsSum, which finds the sum of every row in the given two-dimensional array and returns them in a one-dimensional array.

An example is shown below

input:

1 2 4
3 1 5

result: { 7, 9}

input:

1 2 4
3 1 5
3 3 3

result: {7, 9, 9}

Type your solution        
Skills Practiced:
3.C
3.E
4.A
4.B
Copyright © StudyCS 2024 All rights reserved.