Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- using System;
- class Cinema
- {
- static void Main()
- {
- string projection = Console.ReadLine();
- int rows = int.Parse(Console.ReadLine());
- int cols = int.Parse(Console.ReadLine());
- double premierePrice = 12.00d;
- double normalPrice = 7.50d;
- double discountPrice = 5.00d;
- int people = rows * cols;
- double totalPrice = 0;
- if(projection == "Premiere")
- {
- totalPrice = people * premierePrice;
- }
- else if(projection == "Normal")
- {
- totalPrice = people * normalPrice;
- }
- else if(projection == "Discount")
- {
- totalPrice = people * discountPrice;
- }
- Console.WriteLine("{0:F2} leva", totalPrice);
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement