Hey, guys, what's up?
So in the last radio I discussed with you, how do all the flow of lube?
And we discussed about the big.
Now in this video, we will discuss what is continue.
Okay, so let us revise.
So what is the normal flow of a loop?
So if you are having a loop here and this is my condition.
So what will happen, these instructions?
And this is my ending of the loop.
So if the condition is true, if the condition is true, you will go inside the loop and you will execute
each one of the instructions.
And after reaching here, you will again check the condition.
If the condition is again through, you will again come inside the loop.
You will execute.
Again, all these instructions and then you will again check the condition.
And if the condition is true, then only you will reach here.
So if the condition is false, then only you can reach here.
And if the condition is true, you will go inside the loop.
OK.
So what does Blake do, if you will, right.
Break here.
And this big should rent get executed.
You will likely reach here.
OK.
Now let's see what continue to do.
So if you are having a loop, let's say you are having a loop and some condition.
Is RTM here?
Now, these are some instructions and then there is a continuous statement and then there are some instructions
and this is the ending of the loop.
So if this condition is true, if this condition is true, go inside the loop.
I will go inside the loop.
I will execute all these instructions.
And what will happen now?
I will execute this containing instructions.
So the meaning of continue is go up the meaning of continuous go up.
Check the condition.
If the condition is to go down.
Hit the continuous treatment, go up, if the condition is false, then you will reach here.
OK.
So I think the meaning of continue is now clear.
So continue means go up and check the condition, go upward.
Check the condition if the condition is true.
Again, come inside.
The loop of the condition is false.
Come out of the loop.
So let's see an example.
So let's name this file as continue.
So continue
not CVP.
OK, so what I'm doing here is.
So this was my break code.
I will copy and paste this whole code here and I will do it.
Just a minor change.
What I will do is sort of this big straight went.
I will write.
Continue.
So continue.
OK.
Now what really my output.
Let's try to understand.
So initially.
So initially the value of AI is to this condition will only be true if the value of FI is eight or 16.
So my output will be two, three, four, five, six and seven.
Now the value of why is it.
So this condition becomes true.
AI plus plus the new value of FI is mine.
Continue.
Continue means go upward.
Check the condition.
Condition is true.
Nine is less than Ghostwood.
20.
Yes.
Go down.
You will reach here CRT.
So nine will reprinted.
See it is not printed here.
So nine Ripponden.
Similarly.
Ten.
Eleven.
Twelve.
Thirteen.
Fourteen, fifteen.
So the value of I will become sixteen.
This condition will again become true.
And then you will increment the value of face of a new vilify.
Becomes seventeen.
And then you will again hit the continuous treatment.
So control statement means go up and check the conditions under 17 is less than goes 20.
You will again come inside the loop.
And then you will print 17.
Then 18, then 19.
And then 20.
So what is my output?
My output is starting from two till 20.
Except eight and sixteen.
So these two numbers will not be printed.
Rest.
All the numbers will be there.
Okay.
Except these two numbers.
All the numbers from total quantity will be present.
So let's see what allowed for that.
We have generated is correct on not.
OK, so our output is correct.
So seven, eight, nine, eight is missing.
Fifteen and seventeen.
It is missing.
Now, one more thing.
If.
You will remove this statement then?
I think that this loop will become an infinite loop.
So let's try to understand why this loop will become an infinite loop.
So when the value of I used to do will get printed three, four, five, six and seven.
So this is my output.
Now the value of I will become eight.
Okay.
You will check this condition.
I'm ordered equals zero.
Yes.
The condition is to go inside the loop.
Continue.
Continue means go up.
I will go up.
Condition is to go down again.
Continue.
Go up.
Condition is to go down.
Go up.
Go down.
Go up.
Go down.
So this will keep going on.
Okay.
So it is less than 20.
This condition will be too.
And I will go down.
I more.
It is a zero.
So this condition is true.
And then I will hit the continuous treatment.
So continue will say go up.
Okay.
So this vile, the condition inside the vial I listed goes to 20.
If the value of I is it this will say go down.
And when I hit and when I will hit the continuous treatment it will say go up.
So go down.
Go up.
Go down.
Go up.
This will keep going on Margaretville Bidis.
And after this infinite loop will be there.
So how to reject infinite loop basically.
Those would be four lines will not be printed.
So two, three, four, five, seven.
And remember those two, four lines that used to be here?
Those are four lines are not.
That means this loop is running.
OK.
This loop is running in five number of times.
OK.
So how to redact infinite loop?
Those two lines are not present.
That means I can see this loop is an infinite loop.
Or you can also verify it.
And just bringing Telo here, sociopath.
I am printing.
Hello.
Now let's see.
OK, so you can see her is getting printer and two, three, four, five, seven was also getting was
also getting printer.
But the speed is so fast that it was not visible.
OK, so this is it for this, we do, if you have any doubt, feel free to ask.
I'll get.
Thank you.