Skip to content · ⁨ข้ามไปยังเนื้อหา⁩

Until they type stop · ⁨จนกว่าพวกเขาจะพิมพ์ stop⁩

English

Until they type stop

Keep reading words with input() and printing each one back, until the word is stop. Do not print stop itself.

The value the loop tests has to be read before the loop starts, and read again at the end of every turn — otherwise the same word is tested for ever. != means is not equal to.

ไทย

จนกว่าพวกเขาจะพิมพ์ stop

ค้างอ่านคำด้วย input() และพิมพ์แต่ละคำกลับมา, จนกว่าคำจะเป็น stop. อย่าพิมพ์ stop เอง

ค่าที่ลูปทดสอบต้องถูกอ่าน ก่อน ลูปเริ่ม และอ่าน อีกครั้ง ที่ท้ายทุกรอบ — มิฉะนั้นคำเดียวกันจะถูกทดสอบตลอด != หมายความว่า ไม่เท่ากับ

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

IGCSE, A-Level & AP