Skip to content

FOR repeats a fixed number of times

  • A FOR loop counts from a start value to an end value.
  • NEXT marks the end of the loop body.

FOR I ← 1 TO 5 runs the body once for each value of I; Total grows 1, 3, 6, 10, 15

Handout

Log in or create account

IGCSE, A-Level & AP