Hi guys.
Welcome back.
Industrial we are going to learn about Ford looks OK and this is the basic syntax for Ford global.
OK.
Oh they'll be far and in between this bracket there'll be three parameters it isn't as if it's just
initialization statement condition a big statement and statements and say the body of the look.
OK so the insulation statement is executed it will do once which choose this one will be executed only
once.
Ok then that this expression is validated which is this particular parameter it'll be validated if the
expression is heavily weighted to false which is zero.
It will come out of this.
OK but use this expression is elevated to two.
Then this particular block of statements of in big secured it and then this particular blade expression
is a bigot.
OK after again that s expressions are elevated which means again this will be validated.
This process goes on until this this expression is false.
OK.
And that s expression is false which means this condition phase could come out of the slope.
We will discuss further with the help of a program.
OK.
Example program for the frontal lobe.
OK.
So as mentioned earlier is the main function in the programming long distance from Main function and
does the regression of part declension part of the error have declared a variable for integer type.
And this is the the format for a follow up which really goes down a little bit three parameters for
Ford look.
So here I'm initializing the value of icon to one and there's a condition which I'm sitting here as
I use it is then I call to fight.
Then if this condition is true and this block of treatment will be executed then this biscuit meant
what happens is this I will be incremented by 1.
OK.
So actually the object of this program is I want to print this particular statement in the second dose
or find them.
So that's why I made this fight here and I said the audience only has 1 2 1 2 5 1 2 3 4 5 so which means
5 times it has to print in that sequence.
OK so know what our value line bill and how it works knows are equal to 1.
So no I one.
So I use less than equal to fight so which means this condition is true.
Then this will be printed.
Okay.
Then what happens is this I will be incremented to two.
Okay so no what General is one No it will increment by 1 which means that I really do know.
Okay.
So now to what happens is.
Again it will come here to is less than or equal to 5 conditions.
This will be printed again that I after printing this again is I value will be incremented by 1 which
means no ice 3.
Okay.
So then again the condition is evaluated.
So that is less than adequate to face the condition is true.
Again this will be printed again.
The value of i will be increment and by 1.
So which means I use for.
So for is less than adequate to find.
So condition is true.
Again this will be printed again will come here and this value will be incremented by 1 which means
no ice right.
OK.
So again this this expression will be evaluated so phases.
Then I recall defining so condition 2 again this will be printed.
So after this.
Again this value of expression will be the value of this particular I will be incremented by 1 which
means no later will be 6 okay.
So no 6 easier than recall do fine.
So condition from the right condition false.
Okay so now it will come out of this loop it returns zero under this program.
And okay so no we'll see
will execute this program now and see what happens see and printed finance.
Okay so this is how you see look a study is how far look works actually.
Okay.
So thanks for watching this video we will catch up in other discussion.
Bye for now.