Advertisement
Kuncavia

11. Cinema

Nov 27th, 2016
158
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C# 0.60 KB | None | 0 0
  1. using System;
  2.  
  3. class Cinema
  4. {
  5.     static void Main(string[] args)
  6.     {
  7.         string type = Console.ReadLine();
  8.         int r = int.Parse(Console.ReadLine());
  9.         int c = int.Parse(Console.ReadLine());
  10.  
  11.         switch (type)
  12.         {
  13.             case "Premiere":
  14.                 Console.WriteLine("{0:F2}", r * c * 12.00);
  15.                 break;
  16.             case "Normal":
  17.                 Console.WriteLine("{0:F2}", r * c * 7.50);
  18.                 break;
  19.             case "Discount":
  20.                 Console.WriteLine("{0:F2}", r * c * 5.00);
  21.                 break;
  22.         }
  23.     }
  24. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement