a=1
s=0

print("enter the value to sum")
print("enter 0 to quite" )

while a !=0 or s<0:

    print("total sum ", s)
    a = float(input("enter new value"))
    s +=a

print('total sum', s)

a=1
s=0

print("enter the value to sum")
print("enter 0 to quite" )

while a !=0 or s<0:

    print("total sum ", s)
    a = float(input("enter new value"))
    s +=a

print('total sum', s)
