Jump to content

Programming Basics/Loops

From Wikibooks, open books for an open world

Loops are used to repeat sections of code, either infinitely, or until a condition is met.

There are two common types of loops, While loops and For loops.