0
How to print array elements in anticlockwise direction in a 2 dimensional array
2 Respuestas
+ 1
use a for loop initialise its variable length with length of that array.
- 1
if this is clockwise:
for (I = 0; I < arr.length(); I++)
then this is anticlockwise:
for (I = arr.length()-1; I >= 0; I--)