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