![](/Images/OutliningIndicators/ContractedBlock.gif)
Code
using System;
class s
{
static void Main()
{
for (int a = 0; a < 99; a++)
{
for (int b = 0; b < 99; b++)
{
for (int c = 0; c < 99; c++)
{
if ((a + b + c == 100) && ((a * 5) + (b * 3) + (c / 3) == 100) && c % 3 == 0)
{
Console.WriteLine("公鸡有{0}只,母鸡有{1}只,小鸡有{2}只",a,b,c);
}
}
}
}
}
}