02. Deer of Santa SoftUni къде бъркам??
using System;
namespace Zadacha2
{
internal class Program
{
static void Main(string[] args)
{
int santaDaysMissing = int.Parse(Console.ReadLine());
int foodLefted = int.Parse(Console.ReadLine());
double foodForDeerOne = double.Parse(Console.ReadLine());
double foodForDeerTwo = double.Parse(Console.ReadLine());
double foodForDeerThree = double.Parse(Console.ReadLine());
double foodNeeded = 0;
foodForDeerOne = foodForDeerOne * santaDaysMissing;
foodForDeerTwo = foodForDeerTwo * santaDaysMissing;
foodForDeerThree = foodForDeerThree * santaDaysMissing;
foodNeeded = foodForDeerOne + foodForDeerTwo + foodForDeerThree;
if (foodLefted > foodNeeded)
{
Console.WriteLine($"{foodLefted - foodNeeded} kilos of food left.");
}
else
{
Console.WriteLine($"(Math.Ceiling{foodNeeded - foodLefted}) more kilos of food are needed.");
}
}
}
}