Watch C# do-while Loop
- 2019
- 6 min
The do-while loop is a variant of the while loop except for one main difference: it will always execute the loop body at least once at the beginning irrespective of the condition being true or false. The condition is evaluated at the end of the first execution of the block when the while statement is encountered.