Къде греша в задачата "Journey" oт упражненията "По - сложни проверки"?
using System;
namespace Trip
{
class Program
{
static void Main(string[] args)
{
double budget = double.Parse(Console.ReadLine());
string season = Console.ReadLine();
string destination = Console.ReadLine();
double priceForTrip = 0;
string typeOfTrip = Console.ReadLine();
if (season == "Summer")
{
if (budget <= 100 && destination == "Bulgaria")
{
priceForTrip = budget * 0.7;
}
else if (budget <= 1000 && destination == "Balcans")
{
priceForTrip = budget * 0.6;
}
else if (budget >= 1000 && destination == "Europe")
{
priceForTrip = budget * 0.1;
}
}
else if (season == "Winter")
{
if (budget <= 100 && destination == "Bulgaria")
{
priceForTrip = budget * 0.3;
}
else if (budget <= 1000 && destination == "Balcans")
{
priceForTrip = budget * 0.2;
}
else if (budget >= 1000 && destination == "Europe")
{
priceForTrip = budget * 0.1;
}
}
Console.WriteLine($"Somewhere in {destination == "Bulgaria"}||{destination == "Balkans"} || {destination == "Europe"}");
Console.WriteLine($"{typeOfTrip == "Camp"}|| {typeOfTrip == "Hotel"} - {priceForTrip:F2}");
}
}
}
Благодаря!
Моля!