Count Positive Numbers

PHP Easy 4 views
Back to Questions

Problem Description

You get n and then n integers. Count how many are > 0.

Input Format

First n. Next line n integers.

Output Format

One integer count.

Sample Test Case

Input:
6 -1 0 4 5 -3 2
Output:
3

Constraints

n

Solutions (0)

No solutions submitted yet. Be the first!

Discussion (0)

No comments yet. Start the discussion!

Prev Next