Skip to content

Count the positives

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.

Log in or create account

IGCSE, A-Level & AP