Skip to content

While loops

Handout

Loop while a condition is true

  • A while loop repeats as long as its condition is true.
  • It checks the condition before each pass.
  • Use it when you do not know the number of repeats in advance.

Handout

Log in or create account

IGCSE & A-Level