So next type of control statements in C++ hydration statements, and we have three types of hydration
statements in C++.
So in the case of hydration statements, it means like we have to repeatedly do something some action.
So if we are repeating some action that despite hydration and programmatically, we want to repeat something,
we can use hydration statements.
So we have three application statements.
One is for statement and that is my statement and address Norway in a statement.
Let's see each of them in action.
So in case of false statements, we do have that condition, but until that condition is satisfied that
block of statements will be executed continuously, the soda indexes for bracket doping initialization,
which is the initial condition, we will see that in action shortly on our program.
Then in then we have to give that condition how it should be done.
What is the condition which need to be checked, then increment or decrement.
Our value should be commended or we can then the value statements, the block of statements which will
be coming inside that particular false statements, then here are so we have the floor for that unit
condition.
If condition is true, that block will be executed, then the value of condition checking will be incrementally
or be commended.
Then again, it will check the condition.
If there are business again, it will execute again, then it will increment again or condition through
execute.
Whenever the condition becomes false, then only this part block stops executing until the conditions.
Screw it in our race execute.
You are a little bit confused.
So let's directly general clinic summary of this false statement.
So I have it simply before statement program.
I want to hear so you can see the scene.
That's all here, right?
First of all, let me clear that answer for you.
See?
So we have four entirely equal to zero.
I less than or equal to 10 i.e. equal pay plus two.
Why did this program?
Actually, that's actually how debatable kadhai the initial value of every ABC.
OK.
After the initial value, it will go straight into this formula.
So this floor for Bronk is actually starting out here on the seven plane.
And what is going it, it is doing.
See how tight it just.
I got busy and all it will be friendly.
Zero.
Then what happens?
It will go away again.
And here it will practically go to this part.
Here you can see eye to eye bluster.
This is not a that expression or or determined expression.
So here you can see iiK or by +2.
What will happen?
The value of AI is currently zero.
It will be AI plus two that is zero plus two or two two.
Then it will go and check that this part of that false statement that this condition taking so do is
less than or equal to 10.
Right.
I was I better here, so it would be coming out again and taking the value.
Now it's two two is less than or equal to 10 to is less than a week or two, then it's true.
So it will again go to the statement by I block the flow of on block and it will see I.
I use no do right.
Similarly, I go by +2 repeats until the value is becoming less than or equal to X.
As the value is less than or equal propeny, it will exit from that block.
So you would have got that kind of idea about the output of the program.
Let's see this program in action.
So let's compare this to C++ for Dart CVP combined.
Let's run this dart slash here.
Don't.
Zero, two, four six, eight eight.
This is not expected.
I think you also expected this output, right?
Maybe you have got diarrhea.
And so the initial value, if I was zero, it will be check that that initial bite.
Then it dad actually goes to this.
Followed in cell block that does see our time that will bring zero.
Then what happened, it will come here, which is not bad expression of that for Luke.
Then it will update the value of fight.
I provide +2 sociopolitical due to benefit is go to that condition.
And it takes two is greater than or equal to 10.
So it's brutal.
So it really again come to follow, then it will bring up to.
Similarly, this continues like it will become for here, then it will check for less than 10 rainfall
that's already here.
Labor six eight.
So what happens when it reaches 10 10 also?
No, I just don't suppose this continued on this week, just eight or 10.
I less than 10.
So it's colder than it's true.
It comes again and it will print 10.
So it predicting then what happens?
It will go again to this park incrementally increment update.
But then what happens?
I equaled by +2, which means 10 plus two equals to Tyler.
So I think we're totally here now with regard to the conditions, I think, but rather greater than
our record low.
And No.
10 is not great land and people do sorry less than a week or two.
And so the condition is false.
Then what happens?
This poor statement is skipped and it will end the program because no more lanes are there after this
bold statement.
So is this the end of the program?
So after then, when it is reaching well, it will not display that value.
I suppose if I am leaving, is the old statement after this bold statement to check whether the value
of I have changed or returned to new value, I will give a clear which will see out.
I actually, according to our logic, ask what my explanation when it was waiting here that should be
tell, right?
So let me run this programme after executing that, after compiling that.
Let's see what is the next value which would be coming.
OK, OK, OK, well, here you have you can see the variable is having value here from here to here
only because it's a local variable.
That's more regarding Scott, that we will explore while we are learning that we have a separate topic
on that.
So I again am trying to.
Yes, now it's executing, it's good.
See, now you can see why you can see both.
You can understand that after reaching 12, it exited from this ballroom.
But after exiting the follow it game across a new statement which was asking to butt in that current
value of life.
And after executing the load, we do as well right side.
But under this guidance that many of you have bought this program, so let's move to the next control
statement.