This is the basic syntax for my look.
OK via this expression then statements and send them only.
OK so the vile look a values this expression inside the parentheses if this condition is true then the
statement inside the body of the looks are executed.
OK so then again that s expressions are evaluated.
The process goes on until this expression is evaluated to force.
OK.
Suppose if this condition is met for five times.
Then fight them the statements will be executed.
OK so at last.
If this this expression is false then Edwin and the Slowpoke the look to the looked admits OK.
This condition if this became false then it would come out of this.
So we'll see for them with the help of the program.
OK OK.
This is a basic program for a while loop.
Ok so as they're told and physicians decide the header files we are discussing the illustration.
These are the main.
This is the main function and the program it always starts from here.
Okay so here if you see I have declared one integer data at variable an inch closer to the value with
the one.
Okay so on that this is the VI loop.
Okay.
Right.
As I told earlier with this expression here.
So I'm just putting it as i is less than equal to fight.
Okay so I use thing but 1.
Okay so 1 is less than or equal to fight so the condition is true.
So the statement will be executed.
Okay so this will be executed.
So.
So then and she will be printed once.
Okay.
This after this condition.
Okay.
So now again what I am doing is I am incrementing I but 1.
Okay so which means currently I is 1.
So now when a increment here I will become 2.
Okay so again then this again it will come here and it will evaluate under no 2 is less than adequate
to fight so which is 2 again disparate trusted men will be printed okay again after that what happens
is this I value will be increment to 3.
Okay so again 3 will be evaluated here.
So 3 is less than or equal to fight.
Okay.
So again this will be printed again after what happens is after printing this again this value will
be incremented by 1.
So no I will be full.
Okay so now again 4 is less than equal to fight.
So condition is true.
So again this will be printer now for will become now.
Again here it will increment by 1 so it will be fine.
Okay.
So now what happens is fight is less than equal to fights which is true.
Again this will be printed and again no I will become 6.
Okay so no 6 is less than equal to fight okay which is false.
Okay so then it tournaments the strips.
Okay.
There are things you don't and the program will be ended.
Okay so no we will see what happens now when we execute this program.
So by right it should print 5 texts.
Okay.
This print of judgment should print five times as it will earlier.
Instead of printing FYI instead of writing this print statement five times in order to print this Dennis
Ritchie in the second zone we're using a loop on just automating and it will default by default it will
not after you're setting up this condition you do items of the sequence or suppose if you make the first
lists execute this program and see what happens who it is some error.
Okay I'll just like this printer fight that you have written all you once and we have used loops in
order to print five times Dennis Ritchie in the sequence of Suppose I want to print ten times OK so
I make it it is an getting a string so steps.
So you need to write five times or ten times this print of treatment.
Instead we can use this VI loop in order to do the repetitive task so so loops are very powerful in
C language.
It will be used in many places in C programming language.
Okay so this how I look works.
Thanks for watching this video will catch up on that decision.
Bye for now.