Explain Do while Loop with example

 Do while Loop with program

The do/while repetition structure
Similar to the while structure
Condition for repetition tested after the body of the loop is performed
All actions are performed at least once

Format:


do {
  statement;
} while ( condition );


Example 


(letting counter = 1):
do {
   printf( "%d  ", counter );
} while (++counter <= 10);
Prints the integers from 1 to 10

Labels: