Advertisement
koksibg

Cinema

Jul 2nd, 2016
835
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C# 0.82 KB | None | 0 0
  1. using System;
  2. using System.Collections.Generic;
  3. using System.Linq;
  4. using System.Text;
  5. using System.Threading.Tasks;
  6.  
  7. namespace Cinema
  8. {
  9.     class Cinema
  10.     {
  11.         static void Main(string[] args)
  12.         {
  13.             string Type = Console.ReadLine();
  14.             int Rows = int.Parse(Console.ReadLine());
  15.             int Columns = int.Parse(Console.ReadLine());
  16.             double Premiere = Rows * Columns * 12;
  17.             double Normal = Rows * Columns * 7.5;
  18.             double Discount = Rows * Columns * 5;
  19.             if (Type == "Premiere")
  20.             Console.WriteLine("{0:f2} leva", Premiere);
  21.             else if (Type == "Normal")
  22.             Console.WriteLine("{0:f2} leva", Normal);
  23.             else if (Type == "Discount")
  24.             Console.WriteLine("{0:f2} leva", Discount);
  25.         }
  26.     }
  27. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement