Advertisement
GalinaKG

Untitled

Apr 22nd, 2022
71
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.47 KB | None | 0 0
  1. budget = float(input())
  2. count_statists = int(input())
  3. price_one_outfit = float(input())
  4. decor = budget * 0.10
  5. outfits = count_statists * price_one_outfit
  6.  
  7. if count_statists > 150:
  8. outfits -= (outfits * 0.10)
  9.  
  10. total_sum = outfits + decor
  11. diff = abs(total_sum - budget)
  12.  
  13. if total_sum > budget:
  14. print("Not enough money!")
  15. print(f"Wingard needs {diff:.2f} leva more.")
  16. else:
  17. print("Action!")
  18. print(f"Wingard starts filming with {diff:.2f} leva left.")
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement