Skip to content · ⁨דלג לתוכן⁩

while loops · ⁨לולאות while⁩

English

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.
עברית

while חוזרת

  • לwhile (test) { ... } פועלת שוב ושוב, כל עוד הבדיקה נשארת true.
  • היא בודקת את התנאי לפני כל עובר — ולכן הגוף עשוי להיעשות אפס פעמים.

Log in or create account · ⁨היכנס או צור חשבון⁩

IGCSE, A-Level & AP