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