Read an integer N.
This number indicates how many values the array will have.
Then, read N integers (one per line) and store them in an array.
Check if all numbers in the array are positive (greater than zero).
Hints:
for loop to read the data and store it in the array.bool variable that starts as true and becomes false if any number is not positive.break to stop early once you find a non-positive number.An integer N, followed by N integers, one per line.
If all numbers are positive, display Todos positivos. Otherwise, display No todos positivos.
Input:
4
5
3
8
1
Output:
Todos positivos
Input:
4
5
-3
8
1
Output:
No todos positivos