There is a accessory aberration amid the alive of while and do-while loops. This aberration is the abode area the action is tested. The while tests the action afore active any of the statements aural the while loop. As adjoin this, the do-while tests the action afterwards accepting accomplished the statements aural the loop.

General syntax for DO-WHILE loop :


do
{
this ;
and this ;
and this ;
and this ;
} while ( this condition is true ) ;




0 comments to "THE DO-WHILE LOOP"

Post a Comment

Powered by Blogger.