Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- using System;
- namespace Cinema
- {
- class Program
- {
- static void Main(string[] args)
- {
- string typeOfProjection = Console.ReadLine();
- int r = int.Parse(Console.ReadLine());
- int c = int.Parse(Console.ReadLine());
- double income = 0.00;
- switch (typeOfProjection)
- {
- case "Premiere": income = r * c * 12; break;
- case "Normal": income = r * c * 7.5; break;
- case "Discount": income = r * c * 5; break;
- }
- Console.WriteLine($"{income:f2}");
- }
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement