Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- namespace Task01Cinema
- {
- using System;
- class Program
- {
- static void Main()
- {
- string projectionType = Console.ReadLine();
- int rows = int.Parse(Console.ReadLine());
- int columns = int.Parse(Console.ReadLine());
- int allSeats = rows * columns;
- decimal price = 0;
- switch (projectionType)
- {
- case "Premiere": price = 12;
- break;
- case "Normal": price = 7.5M;
- break;
- case "Discount": price = 5;
- break;
- }
- Console.WriteLine("{0:F2} leva", price * allSeats);
- }
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement