public static void Main()
var message = IsProfitable(100, 0, 5) ? "Profit!" : "No profit";
Console.WriteLine(message);
public static bool IsProfitable(decimal total, int amount, decimal fixedCosts)
return amount > 0 & total / amount - fixedCosts > 0;