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