Skip to content

Glossary: C# Basics

while loop

Also written: while, while (true)

A loop that checks its condition, runs the block if true, then checks again. `while (true)` never stops on its own, so it suits stopping with `break`.

Where the book teaches it

Related terms

for loopbreak