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 本身不算。

计数器从 0 开始,每当条件为真就加 1。

Log in or create account · ⁨登录或创建账户⁩

IGCSE, A-Level · ⁨IGCSE、A-Level⁩ & AP · ⁨与 AP⁩