DEV Community

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

Posted on • Originally published at wellsb.com on

1 1

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)

👋 Kindness is contagious

Please leave a ❤️ or a friendly comment on this post if you found it helpful!

Okay