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 Journey
- {
- class Program
- {
- static void Main(string[] args)
- {
- int budget = int.Parse(Console.ReadLine());
- string season = Console.ReadLine();
- double money = 0;
- switch (season)
- {
- case "Bulgaria":
- {
- if (budget <= 100 && season == "summer")
- {
- money = budget * 0.30;
- Console.WriteLine($"Somewhere in Bulgaria");
- Console.WriteLine($"Camp - {money:F2}");
- }
- else if (budget <= 100 && season == "winter")
- {
- money = budget * 0.70;
- Console.WriteLine($"Somewhere in Bulgaria");
- Console.WriteLine($"Hotel - {money:F2}");
- }
- }
- break;
- case "Balkans":
- {
- if (budget <= 1000 && season == "summer")
- {
- money = budget * 0.40;
- Console.WriteLine($"Somewhere in Balkans");
- Console.WriteLine($"Camp - {money:F2}");
- }
- else if (budget <= 1000 && season == "winter")
- {
- money = budget * 0.80;
- Console.WriteLine($"Somewhere in Balkans");
- Console.WriteLine($"Hotel - {money:F2}");
- }
- }
- break;
- case "Europe":
- {
- if (budget > 100)
- {
- money = budget * 0.90;
- Console.WriteLine($"Somewhere in Europe");
- Console.WriteLine($"Hotel - {money:F2}");
- }
- }
- break;
- }
- }
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment