 So now we run into another little brain melter, and this is known as something called nested loops So how a nested loop operates is if we think about if statements and if statement again We looked at it in the sense that I can write, you know, if Inside here and when this is true I add a new if so all of a sudden, you know, I've got a third a second one I could even do it again. I can continue to do these things to my heart's content This one belongs into this this belongs into this this is in the main program We can do the same thing with loops and what happens with that is we break down into two styles We get what's known as my outer loop and my inner loop now You can think of this like a little bit of a roller coaster if you will Basically, I start with the outer loop. That's my main loop It's this guy We kind of look at this code for a second. This is all kind of going on in action We got two while loops running. So this outer loop follow this dot Well, what's gonna happen? Well, I Execute this while loop So I go right here And all of a sudden, you know, I'm at a crossroad. Do I continue with my loop? Do I just move on and get back up here now? I Have a new loop I have to go through And guess what? Well, why is less than four? That means I increment so suddenly why Just got changed why just became one But why it's still less than four. So I just ran through it again So now it's two Now it's three Now it's four Because why is less than four? This moves on Finally as you can see boom X becomes one and look what else I do I Reset I reset Why so as you can guess I would go through it again. I would run through this loop Another time. I'd hit this crossroad point right here and I'd go one two three four Move on to the rest of the code and this is where it would stop