Advertisement
veronikaaa86

01. Cinema

Jul 16th, 2023
985
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Python 0.32 KB | None | 0 0
  1. type_tickets = input()
  2. rows = int(input())
  3. cols = int(input())
  4.  
  5. all_seats = rows * cols
  6.  
  7. price = 0
  8. if type_tickets == "Premiere":
  9.     price = 12
  10. elif type_tickets == "Normal":
  11.     price = 7.50
  12. elif type_tickets == "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