Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- using System;
- namespace CinemaTicket
- {
- class Program
- {
- static void Main()
- {
- string projection = Console.ReadLine();
- int rows = int.Parse(Console.ReadLine());
- int columns = int.Parse(Console.ReadLine());
- if (projection == "Premiere")
- {
- Console.WriteLine($"{rows * columns * 12:F2} leva");
- }
- else if (projection == "Normal")
- {
- Console.WriteLine($"{rows * columns * 7.5:F2} leva");
- }
- else if (projection == "Discount")
- {
- Console.WriteLine($"{rows * columns * 5:F2} leva");
- }
- }
- }
- }
Add Comment
Please, Sign In to add comment