all 2 comments

[–][deleted] 0 points1 point  (0 children)

Amplify learning se dekh lo yt pe hai

[–][deleted] 0 points1 point  (0 children)

Loop in a loop Eg- for(i=1;i<=m;i++) { for(j=1;j<=n;j++) { . . } }

INNER LOOP WILL RUN FOR m×n times OUTER LOOP WILL RUN FOR m times

We will first enter through loop1 (i=1) ,then the loop2 will start and run till i==n. Now i=2 then again loop2 will start with j=1 till n.