Question: checking if sum of row is zero(JAVA) What should i put to check if sum of row is zero and it will print the row

checking if sum of row is zero(JAVA)

What should i put to check if sum of row is zero and it will print the row with sum of zero.

checking if sum of row is zero(JAVA) What should i put to

INPUT:

3

0 1 0

0 0 0

1 0 0

OUTPUT:

row 2

5 vo 1 import java.util.*; 2 public class SumRow { 30 public static void main (String [] args) { 4 Scanner sc = new Scanner(System.in); int N =sc.nextInt(); 6 int[][] square = new int[N][N]; for(int i = 0; i

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!