Проблем със задача в judge, Годзила срещу Конг
using System;
namespace MyFirstProject2
{
class Program
{
static void Main(string[] args)
{
double buget = double.Parse(Console.ReadLine());
double statist = double.Parse(Console.ReadLine());
double clothing = double.Parse(Console.ReadLine());
double dekor = buget - (buget * 0.90);
if (statist > 150)
{
clothing = clothing - (clothing * 0.10);
}
else
{
}
double sum1 = clothing * statist;
double sum2 = sum1 + dekor;
if ( sum2 >= buget)
{
Console.WriteLine("Not enough money!");
Console.WriteLine($"Wingard needs {sum2 - buget:f2} leva more.");
}
else if (sum2 <= buget)
{
Console.WriteLine("Action!");
Console.WriteLine($"Wingard starts filming with {Math.Abs(buget-sum2):f2} leva left.");
}
}
}
}
Благодаря !