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

Count the positives · ⁨นับเลขบวก⁩

English

Count the positives

Return how many numbers in a list are greater than 0. Zero itself does not count.

A counter starts at 0 and grows by 1 each time the condition is true.

ไทย

นับจำนวนเลขบวก

คืนว่าในรายการมีตัวเลขกี่ตัวที่มีค่ามากกว่า 0. ตัวเลข 0 เองไม่也算在内 (zero itself does not count).

ตัวนับเริ่มที่ 0 และเพิ่มขึ้น 1 ทุกครั้งที่เงื่อนไขเป็นจริง

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

IGCSE, A-Level & AP