DEV Community

Cover image for While Loop vs Do While Loop
Bradley Wells
Bradley Wells

Posted on • Originally published at wellsb.com on

While Loop vs Do While Loop

This tutorial will explain the difference between a While loop and a Do While loop in C#. You will learn when to use each type of iterative statement by working through practical examples. In previous tutorials, you have learned about for loops and foreach loops. These loops are useful when you need to make a known number of iterations, either based on a counter or based on the number of elements...

Source

Top comments (0)