In [1]:
n=int(input('please enter a positive ingeter'))
i=1
total=0
while i<=n:
    a=int(input())
    total=total+a
    i=i+1
print(total)


please enter a positive ingeter5
1
2
3
4
5
15

In [6]:
input('if you don not want to enter anymore,please click Enter')
i=input()
while i!='':
    i=input()


if you don not want to enter anymore,please click Enter1
2
3


In [ ]:
i=int(input())
add_total=i
multi_total=i
while add_total>=i or multi_total>=(i*i):
    i=int(input())
    add_total=add_total+i
    multi_total=multi_total*i