How to display the numbers of the auxiliary diagonal of the table in Edit ?

  • Clarify the question. - Nicolas Chabanovsky

1 answer 1

Immediately it's easy!

 int mas[][] = {... ... ....}// Ваш массив 10x10 int j = 0; for (int i = 9; i >= 0; i--){//Начинаем выводить вспомогательную диагональ. System.out.println(mas[i][j]); j++; } 

It turns out that it will be displayed first mas[9][0] , then mas[8][1] , ... and so on until the end