Advertisement
vasilStanoev

Untitled

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