Skip to content

while loops

while repeats

  • while (test) { ... } runs again and again, as long as the test stays true.
  • It checks the test before each pass — so the body might run zero times.

Log in or create account

IGCSE & A-Level