Skip to content

Iteration: FOR

FOR counts

  • A count-controlled loop runs once for each integer from the start to the end, inclusive.
  • The counter is an INTEGER.
  • It is good practice to repeat the counter's name after NEXT.

FOR Count from 1 to 4 runs four passes with Count equal to 1, 2, 3 and 4

Handout

Log in or create account

IGCSE, A-Level & AP