YankoGrancharov

hotel 2

Sep 26th, 2017
144
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C# 1.27 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 ConsoleApp2
  8. {
  9.     class Program
  10.     {
  11.         static void Main(string[] args)
  12.         {
  13.             string mount = Console.ReadLine();
  14.             int naitsCount = int.Parse(Console.ReadLine());
  15.             double studioPrais = 0;
  16.             double doublePrais = 0;
  17.             double suitePrais = 0;
  18.             double discaunt = 0;
  19.             switch (mount)
  20.             {
  21.                 case "May":
  22.                 case "October":
  23.                     studioPrais = 50;
  24.                     doublePrais = 65;
  25.                     suitePrais = 70;
  26.                     if (naitsCount)
  27.                     break;
  28.                 case "June":
  29.                 case "September":
  30.                     studioPrais = 60;
  31.                     doublePrais = 72;
  32.                     suitePrais = 82;
  33.                     break;
  34.                 case "July":
  35.                 case "August":
  36.                 case "December":
  37.                     studioPrais = 65;
  38.                     doublePrais = 77;
  39.                     suitePrais = 89;
  40.                     break;
  41.                 default:
  42.                     break;
  43.             }
  44.         }
  45.     }
  46. }
Advertisement
Add Comment
Please, Sign In to add comment