BbJLeB

02. Cinema

May 7th, 2019
83
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Python 0.36 KB | None | 0 0
  1. screening_type = input()
  2. rows = int(input())
  3. columbs = int(input())
  4.  
  5. income = 0
  6. cinema_capacity = rows * columbs
  7.  
  8. if screening_type == "Premiere":
  9.     income = cinema_capacity * 12.00
  10. elif screening_type == "Normal":
  11.     income = cinema_capacity * 7.50
  12. elif screening_type == "Discount":
  13.     income = cinema_capacity * 5.00
  14. print(f"{income:.2f} leva.")
Add Comment
Please, Sign In to add comment