Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- using System;
- namespace Trip
- {
- class Program
- {
- static void Main(string[] args)
- {
- double budget = double.Parse(Console.ReadLine());
- string season = Console.ReadLine().ToLower();
- var calculation = 0.0;
- string camp = "Camp";
- string hotel = "Hotel";
- if (season=="summer")
- {
- if (budget>1000)
- {
- calculation = budget * 0.9;
- Console.WriteLine($"Somewhere in Europe");
- Console.WriteLine($"{hotel} - {calculation:f2}");
- }
- if (budget <= 1000&&budget>100)
- {
- calculation = budget * 0.4;
- Console.WriteLine($"Somewhere in Balkans");
- Console.WriteLine($"{camp} - {calculation:f2}");
- }
- if (budget <= 100)
- {
- calculation = budget * 0.3;
- Console.WriteLine($"Somewhere in Bulgaria");
- Console.WriteLine($"{camp} - {calculation:f2}");
- }
- }
- else if (season == "winter")
- {
- if (budget > 1000)
- {
- calculation = budget * 0.9;
- Console.WriteLine($"Somewhere in Europe");
- Console.WriteLine($"{hotel} - {calculation:f2}");
- }
- if (budget <= 1000 && budget > 100)
- {
- calculation = budget * 0.8;
- Console.WriteLine($"Somewhere in Balkans");
- Console.WriteLine($"{hotel} - {calculation:f2}");
- }
- if (budget <= 100)
- {
- calculation = budget * 0.7;
- Console.WriteLine($"Somewhere in Bulgaria");
- Console.WriteLine($"{hotel} - {calculation:f2}");
- }
- }
- }
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement