Skip to main content

Loop

Programming

A control structure that repeats a block of code.

A loop executes a set of statements repeatedly until a condition is met. Common forms include for, while, and do-while loops, as well as iteration over collections. Loops are essential for processing sequences and automating repetition.

← Back to full glossary