# You are given an array of integers from N elements entered from the keyboard. Count how many

You are given an array of integers from N elements entered from the keyboard. Count how many negative, positive and zero numbers are in it?

(The solution to the problem is provided in the programming language – Python 3.6.4).

Let’s create an empty array a, which will be sequentially filled with n elements entered by the user from the keyboard. Let’s also create variables k, c and d equal to zero.

Using the for loop, we iterate over all the elements of the array, and thanks to the if condition, we find elements with positive, zero or negative values ​​among them and recalculate the corresponding elements. As a result, we get the following program:

a = []
n = int (input ())
k = 0
c = 0
d = 0
for i in range (0, n):
b = int (input ())
a.append (b)
for i in range (0, n):
if a [i]> 0:
k + = 1
elif a [i] == 0:
c + = 1
elif a [i] <0:
d + = 1
print (k, c, d)

One of the components of a person's success in our time is receiving modern high-quality education, mastering the knowledge, skills and abilities necessary for life in society. A person today needs to study almost all his life, mastering everything new and new, acquiring the necessary professional qualities.