2-D Arrays, Strings

After 2:00:00 in the webinar why 8 and 7 be repeated

Hello @Nikhil-Aggarwal-2320066674901389,

If you would dry that code, you would observe that:
this code is executing for one extra column or row.

For this specific case:
After executing the first inner for loop that is printing 7 8 9, it will execute the third inner loop also printing 7 8
To avoid this they have added a conditional check as explained in the video.

Hope, this would help.
Give a like, if you are satisfied.