 So we also have two other styles of loops We have something known as the do while loop and then we also have something known as the for loop Now how they operate is that do while do while Well, if we think about That high low game that we were talking about earlier High low you notice how I had to Prompt my user before I got into the loop and then out at the bottom of the loop I had to then reprompt them. Well, what we could do is instead of that We could actually go about it and say get the input first Get the user input first then Determine Too low too high too high low while guess does not Equal my number what this allows for me to do now is do something called 1 to infinite and the reason why is the while loop the while loop actually is Zero to infinite. I don't know if it's actually ever going to run this one explicitly at least makes me do it once Now the for loop the for loops a little different the for loop has the structure something like this int I equals zero I Less than 10 I plus plus now I Are sorry the for loop the for loop is going to run exactly 10 times and the reason by by that is this guy The for loop breaks down into three separate portions this first portion. This is known as the initialization Section sorry the initialization section this second portion right here This is known as my conditional just like we've seen in my loops in the past And then this guy right here this guy is actually something known as my iteration So why what's the big deal with all three of these? Well, the first one is if we look at say for example the let me change my color actually We take a look at this initialization section right here The initialization section is basically saying that I want to deal with Before the for loop even starts make these things happen So if we're saying make int I equals zero boom That's only gonna live inside of this for loop Then we've got the conditional the conditional is the exact same as we've seen in the past run this loop Continuously until this condition is false But then we get this iteration section now every time we cycle through a loop it's known as a iterate as an iteration and What this section does is it's actually saying well every time you cycle through a loop do this action So what's gonna happen is the first time I deal with this loop? I'm gonna make an int I equal zero and I'm gonna go through the code I'm gonna you know go through the code that I put in here when I get to the end right here Before moving immediately back up to the top. I want to do this guy first. I want to do the iteration first Then I'm gonna move back up To the top. I'm gonna reevaluate my conditional statement if it's true I go through this again Once I get to the end I go back to iteration and I determine I do that action again So that's why you can see sort of this plus plus I plus plus. I'm incrementing I each time Making it such that my for loop will run Explicitly ten times. It's not gonna run one time. It will run exactly ten times