subject

Assume arr2 is declared as a two-dimensional array of integers. which of the following segments of code successfully calculates the sum of all elements arr2? int sum = 0; for(int j = 0; j < arr2.length; j++) { for(int k = 0; k < arr2[j].length; k++) { sum += arr2[k][j]; } } int sum = 0; for(int j = arr2.length βˆ’ 1; j > = 0; jβˆ’βˆ’) { for(int k = 0; k < arr2[j].length; k++) { sum += arr2[j][k]; } } int sum = 0; for(int[] m : arr2) { for(int n : m) { sum += n; } }

ansver
Answers: 1

Another question on Computers and Technology

question
Computers and Technology, 22.06.2019 10:30
Aconstruction company is creating a powerpoint presentation describing how they calculate costs during each construction step. they plan to email this presentation to clients. the individual clients will be watching the presentation slide show on their own personal computers. what is the most important formatting step the company should take to make the text readable and pleasing to the eye?
Answers: 2
question
Computers and Technology, 22.06.2019 12:30
Which of the choices sean are not true when considering virus behavior
Answers: 1
question
Computers and Technology, 23.06.2019 09:30
You wanted to look up information about alzheimer's, but you were unsure if it was spelled "alsheimer's" or "alzheimer's." which advanced search strategy would be useful? a) a boolean search b) using a wild card in your search c) trying different search engines d) doing a search for "alsheimer's not alzheimer's" asap. ill give brainlist.
Answers: 1
question
Computers and Technology, 24.06.2019 01:00
How can the temperature of a room be raised by 5degreesf?
Answers: 1
You know the right answer?
Assume arr2 is declared as a two-dimensional array of integers. which of the following segments of c...
Questions
question
Mathematics, 30.03.2020 06:23