Skip to content

Counting loops

Handout

Repeat with for

  • A for loop repeats code a fixed number of times.
  • The body of the loop is indented, like an if.
  • A loop variable holds a new value on each pass.

Handout

Log in or create account

IGCSE & A-Level