Important Notice:

Course Content
Building IoT Applications (Chapter-4) M4-R5.1
About Lesson

do-while loop

          The do-while loop is an exit controlled loop statement. The body of the loop are executed first and then the condition is evaluated. If it is true, then the body of the loop is executed once again. The process of execution of body of the loop is continued until the condition finally becomes false and the control is transferred to the statement immediately after the loop. The statements are always executed at least once.

Syntax :

variable initialization ;

do{

statements ;

variable increment or decrement ;

}while (condition);

 

1 Program to print first ten multiple of 5

 

Practical Exercise: Click Here

error: Content is protected !!