do..while loop

do..while loop :

        Syntax: 
                   do
                   {

                       body of loop
            
                    }while(condition);

do..while loop is a exit controlled loop which checks the looping condition after the first iteration, if it evaluates to true it continues with remaining iterations otherwise it continues with remaining part of the program.

Comments