Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- using System;
- namespace _11.Cinema
- {
- class Program
- {
- static void Main(string[] args)
- {
- string projection = Console.ReadLine().ToLower();
- int rows = int.Parse(Console.ReadLine());
- int columns = int.Parse(Console.ReadLine());
- int space = rows * columns;
- double income = -1;
- switch (projection)
- {
- case ("premiere"):
- income = space * 12;
- break;
- case ("normal"):
- income = space * 7.50;
- break;
- case ("discount"):
- income = space * 5;
- break;
- }
- Console.WriteLine($"{income:f2}" + " leva");
- }
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement