public static void Main()
CountAnimals(2, 3, 5) == 36,
CountAnimals(1, 2, 3) == 22,
CountAnimals(5, 2, 8) == 50
var total = testCases.Length;
foreach (var result in testCases)
Console.WriteLine(result ? "✓" : "✗");
passed = result ? passed + 1 : passed;
Console.WriteLine($"{passed}/{total} tests passed");
public static int CountAnimals(int chickens, int cows, int pigs)