Skip to content · ⁨ข้ามไปยังเนื้อหา⁩
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.
ไทย

ทำซ้ำwhileเงื่อนไขเป็นจริง

  • ลูป while จะทำซ้ำ ตราบใดที่ เงื่อนไขของมันยังเป็นจริง
  • มันจะตรวจสอบเงื่อนไข ก่อน แต่ละรอบ
  • ใช้เมื่อไม่ทราบจำนวนรอบการทำซ้ำล่วงหน้า

Handout · ⁨เอกสารประกอบการเรียน⁩

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

IGCSE, A-Level & AP