# 输入 20 个整数,统计其中正数、负数和零的个数
num = 1
positive = 0
negative = 0
zero = 0
while num <= 20:
a = int(input())
num += 1
if a > 0:
positive += 1
elif a < 0:
negative += 1
else:
zero += 1
print(positive)
print(negative)
print(zero)
转载请注明原文地址:https://ipadbbs.8miu.com/read-52309.html