Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- using System;
- class Traveling
- {
- static void Main()
- {
- var budget = double.Parse(Console.ReadLine());
- var season = Console.ReadLine();
- var price = 0.0;
- string destination;
- if (budget <= 100)
- {
- if (season == "summer")
- {
- price = budget * 0.3;
- Console.WriteLine("Somewhere in Bulgaria");
- Console.WriteLine("Camp - {0:F2}", price);
- } else if (season == "winter")
- {
- price = budget * 0.7;
- Console.WriteLine("Somewhere in Bulgaria");
- Console.WriteLine("Hotel - {0:F2}", price);
- }
- } else if (budget <= 1000)
- {
- if (season == "summer")
- {
- price = budget * 0.4;
- Console.WriteLine("Somewhere in Balkans");
- Console.WriteLine("Camp - {0:F2}", price);
- }
- else if (season == "winter")
- {
- price = budget * 0.8;
- Console.WriteLine("Somewhere in Balkans");
- Console.WriteLine("Hotel - {0:F2}", price);
- }
- } else if (budget > 1000)
- {
- price = budget * 0.9;
- Console.WriteLine("Somewhere in Europe");
- Console.WriteLine("Hotel - {0:F2}", price);
- }
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment