C do-while loop



Do-While Loop Syntax :

initialization; 
do
{
--------------
--------------
--------------
--------------
incrementation;
}while(condition);

Note :

  • It is Exit Controlled Loop.
  • Initialization , Incrementation and Condition steps are on different Line.
  • It is also called Bottom Tested [i.e Condition is tested at bottom and Body has to execute at least once ]