Skip to content

Iteration: WHILE and REPEAT

WHILE tests before each pass

  • A WHILE loop checks its test before each pass.
  • If the test is false at the start, the body runs zero times.
  • The block ends at ENDWHILE.

WHILE tests before the body and may never run; REPEAT ... UNTIL tests after the body and always runs once

Handout

Log in or create account

IGCSE, A-Level & AP