A do-while loop is similar to the whilte loop but the loop's condition is only tested AFTER the loop has run once.
Bij de do-lus wordt de voorwaarde gecontroleerd na elke iteratie en bij de while-lus voor elke iteratie.
Other results
The do... while loop always runs its body once.
De do... while lus ziet er als volgt uit
You can always write a do-until as a while loop. Consider this loop
Deze lus doet exact hetzelfde als het voorbeeld bij de while lus.
DO... WHILE loops check conditions at the end of the loop, ensuring that the loop executes at least once.
DO... WHILE lussen controleren pas aan het eind of aan de voorwaarde wordt voldaan en worden dus in ieder geval 1 keer uitgevoerd.