Задача 9 от упражнението за условни конструкции на С#
Здравейте,моля да ми подскажете какъв е проблема и къде. С всички стойности който въвеждам работи,но
"съдията" ми дава 75 точки( на 4 от проверките "гърми" ).
С линк: https://pastebin.com/zLrPR8Wt
или направо кода:
using System;
namespace stipendia
{
class Program
{
static void Main(string[] args)
{
double dohod = double.Parse(Console.ReadLine());
double uspeh = double.Parse(Console.ReadLine());
double minZapl = double.Parse(Console.ReadLine());
double socStipend = minZapl * 0.35;
double otlichStipend = uspeh * 25;
if (uspeh < 5.5 && dohod >= minZapl)
{
Console.WriteLine("You cannot get a scholarship!");
}
else if (uspeh >= 5.5 && dohod >= minZapl)
{
Console.WriteLine($"You get a scholarship for excellent results {otlichStipend} BGN");
}
else if (dohod < minZapl && uspeh > 4.5 && uspeh < 5.5)
{
Console.WriteLine($"You get a Social scholarship {socStipend} BGN");
}
else if (dohod < minZapl && uspeh >= 5.5)
{
if (otlichStipend >= socStipend)
{
Console.WriteLine($"You get a scholarship for excellent results {otlichStipend} BGN");
}
else
{
Console.WriteLine($"You get a Social scholarship {socStipend} BGN");
}
}
else
{
Console.WriteLine("You cannot get a scholarship!");
}
}
}
}
https://judge.softuni.bg/Contests/Compete/Index/1161#8