10.4k views
5 votes
Please help with task!!! Computer Science

Please help with task!!! Computer Science-example-1
User TAG
by
3.9k points

1 Answer

4 votes

Answer:

for (int i = 0; i < a[].length; i++) {

for (int j = 0; j < a[][].length; j++) {

if (a[i][j] > 7)

return a[i][j];

}

}

Step-by-step explanation:

A nested for-loop can iterate through every row and column and then perform the comparison, returning it if the condition is met.

User KevinLeng
by
4.8k points