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