DiYane

Travelling 5/11

Aug 18th, 2021
205
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Python 0.28 KB | None | 0 0
  1. destination = input()
  2.  
  3. while destination != "End":
  4.     min_bidget = float(input())
  5.     save_money = 0
  6.  
  7.     while save_money < min_bidget:
  8.         money_earned = float(input())
  9.         save_money += money_earned
  10.     print(f"Going to {destination}!")
  11.  
  12.     destination = input()
Advertisement
Add Comment
Please, Sign In to add comment