Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- namespace Cinema
- {
- using System;
- class Cinema
- {
- static void Main()
- {
- var movie = Console.ReadLine().ToLower();
- var rows = int.Parse(Console.ReadLine());
- var columns = int.Parse(Console.ReadLine());
- double price = 0.0;
- switch (movie)
- {
- case "premiere": price = 12.0; break;
- case "normal": price = 7.5; break;
- case "discount": price = 5.0; break;
- default:
- break;
- }
- Console.WriteLine("{0:f2}", rows * columns * price);
- }
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement