Skip to content

Glossary: C# Basics

Loop

Also written: loops

Code that repeats a block while a condition is true. If nothing makes the condition false, it runs forever and you press Ctrl+C.

Where the book teaches it

Related terms

while loopfor loopForeach loop