You are viewing a single comment's thread. Return to all comments →
public static int arraySum(int[][] array){ int total = 0;
for (int row = 0; row < array.length; row++) { total += array[row][row]; } return total;
}
Seems like cookies are disabled on this browser, please enable them to open this website
Diagonal Difference
You are viewing a single comment's thread. Return to all comments →
public static int arraySum(int[][] array){ int total = 0;
}