Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- total = 0
- command = input()
- while command != 'NoMoreMoney':
- current_num = float(command)
- if current_num < 0:
- print('Invalid operation!')
- break
- total += current_num
- print(f'Increase: {current_num:.2f}')
- command = input()
- print(f'Total: {total:.2f}')
Advertisement
Add Comment
Please, Sign In to add comment