0

Inner for loop how its work please Explain in this program

https://sololearn.com/compiler-playground/cSg5xKsJAF4e/?ref=app

31st Jan 2024, 7:54 AM
YevaCoder
YevaCoder - avatar
5 Réponses
+ 3
You might have an easier time understanding the code if you increased the readability. That's what spacing and indentation add. You can check what the inner loops are doing by changing the for loops with different numbers, comment out the outer loops (and maybe the request for input).
31st Jan 2024, 8:01 AM
Ausgrindtube
Ausgrindtube - avatar
+ 3
Yeva👩‍💻Coder , An inner loop completes all of its iterations for each iteration of the outer loop.
31st Jan 2024, 7:05 PM
Rain
Rain - avatar
+ 2
Yeva👩‍💻Coder , Here's a tiny nested loops demo in Python. The principle is the same in any language. https://sololearn.com/compiler-playground/cMrAK3XILhD3/?ref=app
1st Feb 2024, 3:38 AM
Rain
Rain - avatar
+ 1
Try My Original Pattern See Code ---->>> TRY : https://www.sololearn.com/en/compiler-playground/cG2LJM8g9Wj2
1st Feb 2024, 12:03 PM
Code With Nouman
Code With Nouman - avatar
+ 1
Code With Nouman that's my better, nice comments too!
2nd Feb 2024, 8:23 AM
Ausgrindtube
Ausgrindtube - avatar