New course! Every coder should learn Generative AI!
Try a free lesson0
How to print a reverse diagonal, of a two-dimensional matrix?
2 Answers
+ 5
NxN square matrix A:
for (i = n - 1; i >= 0; i--)
System.out.println(A[i][i]);
0
in the cycle that is the n?