While Loop

Syntax:

 

while(condition)

{

statements;

}

 

 

Example:

i=1;

while(i<3)

{

printf("Condition Satisfied!\n");

i++;

}

 

 

Output:

Condition Satisfied!
Condition Satisfied!

 

_____________________

BloggingSimplified.in

_____________________

 

Leave a Reply

Your email address will not be published.