Answer:
public class Main
{
public static void main(String[] args) {
int nPositive = 0;
int[][] a2d = {{-7,28, 92}, {0,11,-55}, {109, -25, -733}};
for (int i = 0; i < a2d.length; i++) {
for(int j = 0; j < a2d[i].length; j++) {
if(a2d[i][j] > 0){
nPositive++;
}
}
}
System.out.println(nPositive);
}
}
Step-by-step explanation:
*The code is in Java.
Initialize the nPositive as 0
Initialize a two dimensional array called a2d
Create a nested for loop to iterate through the array. If an element is greater than 0, increment the nPositive by 1
When the loop is done, print the nPositive