Homework Transport Price
Може ли малко помощ? 83/ 100 в judge и не разбирам къде е грешката.
using System;
class Program
{
static void Main()
{
int n = int.Parse(Console.ReadLine());
string when = Console.ReadLine();
if (n < 20 && when == "day")
{
double taxiDayPrice = 0.70 + (n * 0.79);
Console.WriteLine(taxiDayPrice);
}
else if (n < 20 && when == "night")
{
double taxiNightPrice = 0.70 + (n * 0.90);
Console.WriteLine(taxiNightPrice);
}
else if (n < 100 && when == "day")
{
double busDayPrice = n * 0.09;
Console.WriteLine(busDayPrice);
}
else if (n < 100 && when == "night")
{
double busNightPrice = 0.09 * n;
Console.WriteLine(busNightPrice);
}
else if (n > 100 && when == "night")
{
double trainNightPrice = n * 0.06;
Console.WriteLine(trainNightPrice);
}
else if (n > 100 && when == "day")
{
double trainDayPrice = n * 0.06;
Console.WriteLine(trainDayPrice);
}
}
}