Skip to end of banner
Go to start of banner

Do While

Skip to end of metadata
Go to start of metadata

You are viewing an old version of this page. View the current version.

Compare with Current View Page History

Version 1 Next »

Do while loops are similar to for while loops but the condition is evaluated at then end of each loop and not the beginning. So, even if the condition is false, the instructions will still be evaluated once.

Example 1

number count = 1;
do{
    runnerLog(count);
    count ++;
}while(count <= 10);

  • No labels