1/Program 1 public class T1_3 { public static void main (String[] args) { int[][] arr = { {7,2,6},{6,3,2} }; for (int ro

Business, Finance, Economics, Accounting, Operations Management, Computer Science, Electrical Engineering, Mechanical Engineering, Civil Engineering, Chemical Engineering, Algebra, Precalculus, Statistics and Probabilty, Advanced Math, Physics, Chemistry, Biology, Nursing, Psychology, Certifications, Tests, Prep, and more.
Post Reply
answerhappygod
Site Admin
Posts: 899603
Joined: Mon Aug 02, 2021 8:13 am

1/Program 1 public class T1_3 { public static void main (String[] args) { int[][] arr = { {7,2,6},{6,3,2} }; for (int ro

Post by answerhappygod »

1 Program 1 Public Class T1 3 Public Static Void Main String Args Int Arr 7 2 6 6 3 2 For Int Ro 1
1 Program 1 Public Class T1 3 Public Static Void Main String Args Int Arr 7 2 6 6 3 2 For Int Ro 1 (72.55 KiB) Viewed 27 times
sir only have 30 min to ans please helpppppp
1/Program 1 public class T1_3 { public static void main (String[] args) { int[][] arr = { {7,2,6},{6,3,2} }; for (int row = 1; row < arr.length; row++) { for (int col = 0; col < arr[0].length; col++) { if (arr[row][col] % 2 == 1) arr[row][col] = arr[row][col] + 1; else arr[row][col] = arr[row][col] * 2; } } } ) What is the content of arr[][], after Program lis executed? arr[0][0]= arr[0][1]= arr[0][2]= arr[1][0]= arr[1][1]= arr[1] [2]=
Join a community of subject matter experts. Register for FREE to view solutions, replies, and use search function. Request answer by replying!
Post Reply