car to go
Здравейте judge дава 87/100; къде греша...
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
namespace car_to_go
{
class Program
{
static void Main(string[] args)
{
double butget = double.Parse(Console.ReadLine());
string season = Console.ReadLine();
string clas = "";
string auto = "";
double spend = 0.0;
if (butget <= 100)
{
clas = "Economy class";
if (season == "summer")
{
auto = "Cabrio";
spend = butget * 0.35;
}
else if (season == "Winter")
{
auto = "Jeep";
spend = butget * 0.65;
}
}
else if(butget>100 &&butget<=500)
{
clas = "Compact class";
if(clas=="summer")
{
auto = "Cabrio";
spend = butget * 0.45;
}
else if(season=="Winter")
{
auto = "Jeep";
spend = butget * 0.80;
}
}
else
{
clas = "Luxury class";
auto = "Jeep";
spend = butget * 0.90;
}
Console.WriteLine($"{clas}");
Console.WriteLine($"{auto} - {spend:f2}");
}
}
}