Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- using System;
- class Cinema
- {
- static void Main(string[] args)
- {
- string type = Console.ReadLine();
- int r = int.Parse(Console.ReadLine());
- int c = int.Parse(Console.ReadLine());
- switch (type)
- {
- case "Premiere":
- Console.WriteLine("{0:F2}", r * c * 12.00);
- break;
- case "Normal":
- Console.WriteLine("{0:F2}", r * c * 7.50);
- break;
- case "Discount":
- Console.WriteLine("{0:F2}", r * c * 5.00);
- break;
- }
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement