Skip to main content

Iterate

A sequence of instructions in a program repeated until a certain condition is reached:

  • with a "for loop", the instructions are repeated a certain number of times
  • with a "while" loop, the instructions are repeated until a given condition becomes false
  • with a "forever loop" (also known as an "infinite" or "endless" loop), the instructions are repeated endlessly.