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