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.

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
Get step-by-step solutions from verified subject matter experts
