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 type = Console.ReadLine();
- int rows = int.Parse(Console.ReadLine());
- int colums = int.Parse(Console.ReadLine());
- double income = 0;
- if (type == "Premier")
- {
- income = rows * colums * 12.00;
- }
- else if (type == "Normal")
- {
- income = rows * colums * 7.50;
- }
- else if (type == "Discount")
- {
- income = rows * colums * 5;
- }
- Console.WriteLine($"{income:F2}leva");
- }
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement