Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- using System;
- using System.Collections.Generic;
- using System.Linq;
- using System.Text;
- using System.Threading.Tasks;
- namespace Cinema
- {
- class Cinema
- {
- static void Main(string[] args)
- {
- string Type = Console.ReadLine();
- int Rows = int.Parse(Console.ReadLine());
- int Columns = int.Parse(Console.ReadLine());
- double Premiere = Rows * Columns * 12;
- double Normal = Rows * Columns * 7.5;
- double Discount = Rows * Columns * 5;
- if (Type == "Premiere")
- Console.WriteLine("{0:f2} leva", Premiere);
- else if (Type == "Normal")
- Console.WriteLine("{0:f2} leva", Normal);
- else if (Type == "Discount")
- Console.WriteLine("{0:f2} leva", Discount);
- }
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement