All pastes #204794 Raw Edit

Unnamed

public text v1 · immutable
#204794 ·published 2006-10-16 07:56 UTC
rendered paste body
a = 1
s = 0
print 'Enter Numbers to add to the sum.'
print 'Enter 0 to quit.'
while a != 0 :
        print 'Current Sum:',s
        a = input('Number? ')
        s = s + a
print 'Total Sum =',s