Untitled
unknown
plain_text
2 years ago
1.4 kB
16
Indexable
namespace Journey
{
internal class Program
{
static void Main(string[] args)
{
double budget = double.Parse(Console.ReadLine());
String season = Console.ReadLine();
String destination = "";
double cost;
String holidayType = "";
if (budget <= 100)
{
destination = "Bulgaria";
if (season == "Summer")
{
cost = budget * 0.3;
holidayType = "Camp";
}
else
cost = budget * 0.7;
holidayType = "Hotel";
}
else if (budget <= 1000)
{
destination = "Balkans";
if (season == "Summer")
{
cost = budget * 0.4;
holidayType = "Camp";
}
else
cost = budget * 0.8;
holidayType = "Hotel";
}
else
{
destination = "Europe";
cost = budget * 0.9;
holidayType = "Hotel";
}
Console.WriteLine($"Somewhere in {destination}");
Console.WriteLine($"{holidayType} - {cost:f2}");
}
}
}Editor is loading...