Programming Basics/Loops

From Wikibooks, open books for an open world
Jump to navigation Jump to search

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.