Sign up to request clarification or add additional context in comments.
Comments
1
Since you want to loop through the array vertically by changing the first dimension, you need to have the variable in the inner for loop to be the first dimension like the code below: