Lompat ke konten
English

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.

A while loop tests count < 3, runs the body while it is true, then carries on

Lembar Kerja

Masuk atau buat akun

IGCSE, A-Level & AP