Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- using System;
- namespace kk
- {
- class Program
- {
- static void Main(string[] args)
- {
- double buget = double.Parse(Console.ReadLine());
- string season = Console.ReadLine();
- string destination;
- if (buget <= 100)
- {
- Console.WriteLine("Somewhere in Bulgaria");
- if (season == "summer")
- {
- buget *= 0.30;
- Console.WriteLine($" Camp - {buget:F2}");
- }
- else if (season == "winter")
- {
- buget *= 0.70;
- Console.WriteLine($" Hotel - {buget:F2}");
- }
- }
- else if (buget <= 1000)
- {
- Console.WriteLine("Somewhere in Balkans");
- if (season == "summer")
- {
- buget *= 0.40; Console.WriteLine($"Camp - {buget:F2}");
- }
- else if (season == "winter")
- {
- buget *= 0.80; Console.WriteLine($"Hotel - {buget:F2}");
- }
- }
- else if (buget > 1000)
- {
- Console.WriteLine("Somewhere in Europe");
- if (season=="summer"|| season=="winter")
- {
- buget *= 0.90; Console.WriteLine($"Hotel - {buget:F2} ");
- }
- }
- }
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment