Skip to content · ⁨ข้ามไปยังเนื้อหา⁩
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
  • มันตรวจสอบเงื่อนไข ก่อน การวนรอบแต่ละครั้ง - ดังนั้น Body อาจรันศูนย์ครั้ง

Log in or create account · ⁨เข้าสู่ระบบหรือสร้างบัญชี⁩

IGCSE, A-Level & AP