python-by-example-150-chall.../challenges45-51/challenge-045.py
2019-07-17 16:43:09 +03:00

7 lines
171 B
Python

total = 0
while total <= 50:
number = int(input('Enter number : '))
total = total + number
print('The total is ... {0}'.format(total))
print('While loop end')