# Do-While Loop

Run a block of code at least once, then repeat it while a condition is true, with C#'s do-while loop.

![Cheat sheet: Do-While Loop](https://fsdtrainingmedia.blob.core.windows.net/public/images/2026/11/81dcca779b4e493f98e42b60cdde2fef.webp)

- Category: C#
- Level: Apprentice
- Tags: c-sharp, do-while Loop (c-sharp)
- Updated: November 3, 2026

Source: https://www.ask-codey.com/cheat-sheets/looping-in-csharp-do-while-loop-cheat-sheet
