LIFE CODING WITH JAVA
Row Wise Sum
Send Feedback
For a given two-dimensional integer array/list of size (N x M), find and print the sum of each of the row elements in a single line, separated by a single space.
Sample Input 1:
1
4 2
1 2
3 4
5 6
7 8
Sample Output 1:
3 7 11 15
Sample Input 2:
2
2 5
4 5 3 2 6
7 5 3 8 9
4 4
1 2 3 4
9 8 7 6
3 4 5 6
-1 1 -10 5
Sample Output 2:
20 32
10 30 18 -5
I try to solve very easy concept So please watch this video .
All java code with easy trick.
By "LIFE CODING WITH JAVA". all program free no any cost So please like ,subscribe, share and comment.
If you any doubt related to any video then comment me. As soon as I will help you .
my contact number: 6206472735
Download
0 formats
No download links available.
Row Wise Sum and Column Wise Sum #2d #java | NatokHD