Advertisement
Guest User

Untitled

a guest
Apr 4th, 2020
181
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C# 0.71 KB | None | 0 0
  1. using System;
  2.  
  3. namespace Cinema
  4. {
  5.     class Program
  6.     {
  7.         static void Main(string[] args)
  8.         {
  9.             string type = Console.ReadLine();
  10.             int rows = int.Parse(Console.ReadLine());
  11.             int colums = int.Parse(Console.ReadLine());
  12.             double income = 0;
  13.             if (type == "Premier")
  14.             {
  15.                 income = rows * colums * 12.00;
  16.             }
  17.             else if (type == "Normal")
  18.             {
  19.                 income = rows * colums * 7.50;
  20.             }
  21.             else if (type == "Discount")
  22.             {
  23.                 income = rows * colums * 5;
  24.             }
  25.             Console.WriteLine($"{income:F2}leva");
  26.         }
  27.     }
  28. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement