 Hi everyone, in this tutorial you will learn how to use break and continue statements to get out from the loop early. I'm gonna show you how to use break and continue statements with few examples. Here we're having one simple for loop which is gonna print first 10 integer numbers. It's gonna print numbers from 1 to 10. Let's run this code. And what if I want to get early from this loop? What if I want to check for example is there a number which is divisible by 4? Let's find a number which is divisible by 4 and if there is one such number we're gonna get out from this loop. We do not need to use this loop anymore. Or else let's continue by printing these numbers. I'm gonna run this code and as you can see only first three numbers here are printed because number 4 is divisible by 4. It has no reminder so in the fourth iteration we're gonna get out from the loop and this program will continue to execute other statements outside from this for loop. Let's make an example with the continue statement. With this statement we're not gonna get out from the entire loop. We're gonna get out from the current iteration. For example I'm gonna use this same example. If we find a number which is divisible by 4 we're gonna get out from the loop in this iteration. But this for loop is gonna continue with work until all these numbers pass this test. Let's run this code and as you can see all numbers here are printed which have the property that they are not divisible by 4. So with break statement we're gonna get out from the entire loop and with the continue statement we're gonna get out from the current iteration but this for loop will continue to loop. That's all in this tutorial. Don't forget to check our other tutorials. See you in the next tutorial. Happy coding!