Advertisement
George_Ivanov05

ezz

Mar 11th, 2022
690
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Python 0.53 KB | None | 0 0
  1. budget = float(input())
  2. broi_statisti = int(input())
  3. cena_za_obleklo_na_statist = float(input())
  4.  
  5. decor = budget * 0.1
  6. suma_drehi_statisi = cena_za_obleklo_na_statist * broi_statisti
  7.  
  8. if broi_statisti > 150:
  9.     suma_drehi_statisi *= 0.9
  10.  
  11. total_expenses = decor + suma_drehi_statisi
  12.  
  13. if total_expenses > budget:
  14.     print("Not enough money!")
  15.     print(f"Wingard needs {total_expenses - budget:.2f} leva more.")
  16. else:
  17.     print("Action!")
  18.     print(f"Wingard starts filming with {budget - total_expenses:.2f} leva left.")
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement