Advertisement
veronikaaa86

01. Cinema

Sep 25th, 2022
1,098
1
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Python 0.31 KB | None | 1 0
  1. type_ticket = input()
  2. rows = int(input())
  3. cols = int(input())
  4.  
  5. all_seats = rows * cols
  6.  
  7. price = 0
  8. if type_ticket == "Premiere":
  9.     price = 12
  10. elif type_ticket == "Normal":
  11.     price = 7.5
  12. elif type_ticket == "Discount":
  13.     price = 5
  14.  
  15. total_income = all_seats * price
  16.  
  17. print(f"{total_income:.2f} leva")
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement