Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- destination = input()
- while destination != 'End':
- min_budget = float(input())
- money = float(input())
- saved = 0
- saved += money
- while saved < min_budget:
- money = float(input())
- saved += money
- if saved >= min_budget:
- print(f'Going to {destination}!')
- destination = input()
Advertisement
Add Comment
Please, Sign In to add comment