Защо продължава да ми дава 90/100 къде е грешката ?
using System;
namespace ToysShop
{
class Program
{
static void Main(string[] args)
{
const double puzzle = 2.60;
const double talkingDools = 3;
const double teddyBear = 4.10;
const double minion = 8.20;
const double truck = 2;
double tripPrice = double.Parse(Console.ReadLine());
int countPuzzle = int.Parse(Console.ReadLine());
int countTalkingDools = int.Parse(Console.ReadLine());
int countTeddyBears = int.Parse(Console.ReadLine());
int countMinion = int.Parse(Console.ReadLine());
int countTrucks = int.Parse(Console.ReadLine());
double sum = countPuzzle * puzzle + countTalkingDools * talkingDools + countTeddyBears * teddyBear + countMinion * minion + countTrucks * truck;
double numberOfToys = countPuzzle + countTalkingDools + countTeddyBears + countMinion + countTrucks;
if (numberOfToys > 50)
{
double discount = 0.25 * sum;
double finalSum = sum - discount;
double rent = 0.1 * finalSum;
double profit = finalSum - rent;
if (profit >= tripPrice)
{
double moneyLeft = profit - tripPrice;
Console.WriteLine($"Yes! {moneyLeft:f2} lv left.");
}
else
{
double moneyLeft = tripPrice - profit;
Console.WriteLine($"Not enough money! {moneyLeft:f2} lv needed.");
}
}
else if (numberOfToys < 50)
{
double rent = 0.1 * sum;
double profit = sum - rent;
if (profit < tripPrice)
{
double moneyLeft = tripPrice - profit;
Console.WriteLine($"Not enough money! {moneyLeft:f2} lv needed.");
}
}
}
}
}