Advertisement
mbstanchev

Untitled

Jan 18th, 2022
83
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.49 KB | None | 0 0
  1. bugget = float(input())
  2. decor = bugget * 0.1
  3. num_extra = int(input())
  4. price_of_dress = float(input())
  5.  
  6. price_of_all_dress = num_extra * price_of_dress
  7.  
  8. if num_extra > 150:
  9. price_of_all_dress *= 0.9
  10.  
  11. all_sum = decor + price_of_all_dress
  12. difference = abs(bugget - all_sum)
  13.  
  14. if all_sum > bugget:
  15. print("Not enough money!")
  16. print(f"Wingard needs {difference:.2f} leva more.")
  17. else:
  18. print("Action!")
  19. print(f"Wingard starts filming with {difference:.2f} leva left.")
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement