Затруднение при задачата за *Стипендии
Здравейте,
Дава ми 75% на долното решение в Judge и не мога да разбера къде може да са грешките, понеже в Judge ми излиза само (Incorrect answer).
using System;
namespace _08._Scholarship
{
class Program
{
static void Main(string[] args)
{
double incomes = double.Parse(Console.ReadLine());
double success = double.Parse(Console.ReadLine());
double rangeOfMinimalSalary = double.Parse(Console.ReadLine());
double rangeOfScolarshipforSuccess = 25 * success;
double rangeOfSocialScolarship = 0.35 * rangeOfMinimalSalary;
if (incomes >= rangeOfMinimalSalary)
{
if (success < 5.5)
{
Console.WriteLine("You cannot get a scholarship!");
}
else
{
Console.WriteLine($"You get a scholarship for excellent results {rangeOfScolarshipforSuccess} BGN");
}
}
else
{
if (success > 4.5 && success < 5.5)
{
Console.WriteLine($"You get a Social scholarship {rangeOfSocialScolarship} BGN");
}
else if (success >= 5.5)
{
if (rangeOfSocialScolarship > rangeOfScolarshipforSuccess)
{
Console.WriteLine($"You get a Social scholarship {rangeOfSocialScolarship} BGN");
}
else if (rangeOfScolarshipforSuccess > rangeOfSocialScolarship)
{
Console.WriteLine($"You get a scholarship for excellent results {rangeOfScolarshipforSuccess} BGN");
}
else
{
Console.WriteLine($"You get a scholarship for excellent results {rangeOfScolarshipforSuccess} BGN");
}
}
else
{
Console.WriteLine("You cannot get a scholarship!");
}
}
}
}
}