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