Чекни:
res = 0
while True:
try:
a = int(input())
except(TypeError):
break
if a > 0:
res += a
print(res)
Copyright © 2024 SCHOLAR.TIPS - All rights reserved.
Answers & Comments
Чекни:
res = 0
while True:
try:
a = int(input())
except(TypeError):
break
if a > 0:
res += a
print(res)