Counting positive numbers

Report a typo

Write a program that reads a sequence and prints how many positive numbers it contains.

The first number is the length of the sequence. Other numbers are the elements of this sequence.

Sample Input 1:

8
2
3
0
7
4
-2
-3
0

Sample Output 1:

4
Write a program in Kotlin
fun main() {
// put your code here
}
___

Create a free account to access the full topic