Do while loop

A do...while statement executes a block of instructions at least once before checking the condition to determine whether the block should be repeated. It is often used in cases where the loop body must execute at least once, regardless of the condition.

Was this page helpful?