Toggle menu
Toggle preferences menu
Toggle personal menu
Not logged in
Your IP address will be publicly visible if you make any edits.
Revision as of 09:24, 15 August 2025 by Dylan (talk | contribs) (add: links to definite and indefinite iteration)
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)

Iteration is essentially looping.

Loops generally involve repeating some code a certain number of times, or until a condition is met.

Types of iteration

edit edit source

There are two main forms of loops in programming languages:

Iteration and recursion

edit edit source

Recursion is a programming technique that often achieves the same thing as iteration. In some cases, it can be a better option than iteration.