This repository has been archived on 2025-12-15. You can view files and clone it. You cannot open issues or pull requests or push a commit.
Files
2024-09-20 14:17:13 +03:00

21 lines
344 B
Python

i = 1
n = int(input("Number of time the input to be asked:"))
neg = 0
pos = 0
zeo = 0
while(i<=n):
x = int(input("Enter any integer as input:"))
i = i+1
if x==0:
zeo = zeo + 1
elif x>0:
pos = pos + 1
else:
neg = neg + 1
print ("Positive:",pos)
print ("Negative:",neg)
print ("Zeros:",zeo)