Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- using System;
- using System.Collections.Generic;
- using System.Linq;
- using System.Text;
- using System.Threading.Tasks;
- namespace ConsoleApp2
- {
- class Program
- {
- static void Main(string[] args)
- {
- string mount = Console.ReadLine();
- int naitsCount = int.Parse(Console.ReadLine());
- double studioPrais = 0;
- double doublePrais = 0;
- double suitePrais = 0;
- double discaunt = 0;
- switch (mount)
- {
- case "May":
- case "October":
- studioPrais = 50;
- doublePrais = 65;
- suitePrais = 70;
- if (naitsCount)
- break;
- case "June":
- case "September":
- studioPrais = 60;
- doublePrais = 72;
- suitePrais = 82;
- break;
- case "July":
- case "August":
- case "December":
- studioPrais = 65;
- doublePrais = 77;
- suitePrais = 89;
- break;
- default:
- break;
- }
- }
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment