Forum : How to use do while loop ?
Brief description  about Online courses   join in Online courses
View Manju  S Reddy 's Profile

How to use do while loop ?

do while loop......
Asked by Manju S Reddy | Mar 17, 2010 |  Reply now
Replies (1)
View teacher siliconindia 's Profile
Hi Manjunath,
The Do While statements are similar to While statements, except that the condition is tested at the end of each iteration, rather than at the beginning. This means that the Do While loop is guaranteed to run at least once. The Do While loop syntax is as follows:
do
{
code to be exected;
}
while (condition);

Mar 17, 2010