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