Задача фирма!
Малко помощ ако може? Къде бъркам?Не ми изпълнява Else клаузата!
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
namespace ConsoleApp6
{
class Program
{
static void Main(string[] args)
{
int neededHours = int.Parse(Console.ReadLine());
int availableDays = int.Parse(Console.ReadLine());
int workers = int.Parse(Console.ReadLine());
double workDays = availableDays * 0.9;
double overTime = workers * 2 * workDays;
double workHours = Math.Floor(workDays * 8 + overTime);
if (workHours <= neededHours)
{
Console.WriteLine("Yes! {0} hours left.", neededHours - workHours);
}
else
{
Console.WriteLine("Not enough time! {0} hours needed.", workHours - neededHours);
}
}
}
}
https://csharp-book.softuni.bg/Content/Chapter-3-2-simple-conditions-exam-problems/exam-problems/firm/firm.html