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