num, positive, negative = int(input()), 0, 0
while num:
if num > 0:
positive += 1
else:
negative += 1
num = int(input())
print(f'Положительных: {positive}')
print(f'Отрицательных: {negative}')
Copyright © 2024 SCHOLAR.TIPS - All rights reserved.
Answers & Comments
num, positive, negative = int(input()), 0, 0
while num:
if num > 0:
positive += 1
else:
negative += 1
num = int(input())
print(f'Положительных: {positive}')
print(f'Отрицательных: {negative}')