الانتقال إلى المحتوى

Iteration: WHILE and REPEAT

English

WHILE tests first

  • A pre-condition loop tests the condition, then maybe runs the body.
  • If the condition is already FALSE, the body never runs.
  • The block ends at ENDWHILE.

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

ورقة عمل

تسجيل الدخول أو إنشاء حساب

IGCSE, A-Level & AP