Advertisement
HristoBaychev

Godzilla vs. Kong

Jan 28th, 2023
609
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Python 0.54 KB | None | 0 0
  1. budjetMovies = float(input())
  2. numberStatist = int(input())
  3. priceSuitStat = float(input())
  4.  
  5.  
  6. decorPrice = budjetMovies * 0.10
  7. allClothesPrice = numberStatist * priceSuitStat
  8.  
  9. if numberStatist > 150:
  10.     allClothesPrice = allClothesPrice * 0.90
  11.  
  12. totalExpenses = allClothesPrice + decorPrice
  13.  
  14. diff = abs(totalExpenses - budjetMovies)
  15.  
  16. if budjetMovies >= totalExpenses:
  17.     print("Action!")
  18.     print(f"Wingard starts filming with {diff:.2f} leva left.")
  19. else:
  20.     print("Not enough money!")
  21.     print(f"Wingard needs {diff:.2f} leva more.")
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement