Къде греша ?
Става въпрос за задача 8 .Scholarship от " Упражнение : условни конструкции" .
Тествам задачата с всички възможни варианти за входни данни и ми дава правилни резултати , но в Judge ми дава 93 от 100 точки .
Ще съм Ви много благодарен да ми кажете къде греша :
using System;
namespace Scholarship
{
class Program
{
static void Main(string[] args)
{
double income = double.Parse(Console.ReadLine());
double averageSuccess = double.Parse(Console.ReadLine());
double minimalSalary = double.Parse(Console.ReadLine());
double socialScholarship = Math.Floor(minimalSalary * 0.35);
double execellentSuccessScholarship = Math.Floor(averageSuccess * 25);
if (income < minimalSalary)
{
if (averageSuccess >= 5.50)
{
if (execellentSuccessScholarship >= socialScholarship)
{
Console.WriteLine($"You get a scholarship for excellent results {execellentSuccessScholarship} BGN");
}
else if (execellentSuccessScholarship < socialScholarship)
{
Console.WriteLine($"You get a Social scholarship {socialScholarship} BGN");
}
}
if (averageSuccess > 4.50 && averageSuccess < 5.50)
{
Console.WriteLine($"You get a Social scholarship {socialScholarship} BGN");
}
else if (averageSuccess < 4.50)
{
Console.WriteLine("You cannot get a scholarship!");
}
}
if (income > minimalSalary)
{
if (averageSuccess >= 5.50)
{
Console.WriteLine($"You get a scholarship for excellent results {execellentSuccessScholarship} BGN");
}
else
{
Console.WriteLine("You cannot get a scholarship!");
}
}
}
}
}
Грешката която ми дава в Judge е само на test #9
Test #9 (Incorrect answer)
The process executing your submission for this test may not have received the output successfully. Please try to submit again the same solution. If the result does not change, then search the error in the submission itself.
пробвах няколко пъти , но все тази грешка