Why do we use <= 4 in the i for loop and <= 2 in the j for loop, like what does those numbers mean.
Questions about arrays loop
We use <=4 for row and <=2 for columns because there are 5 rows and 3 columns, and we want to traverse through every element of the array. Top left corner being <0,0> and bottom right corner being <4,2>
I hope I’ve cleared your doubt. I ask you to please rate your experience here
Your feedback is very important. It helps us improve our platform and hence provide you
the learning experience you deserve.
On the off chance, you still have some questions or not find the answers satisfactory, you may reopen
the doubt.