int x, y, z;
for (x = 0; x <= 20; x++)
{
for (y = 0; y <= 33; y++)
{
z = 100 - x - y;
if (x * 5 + y * 3 + z / 3.0 == 100)
{
Response.Write("公鸡:"+x+"母鸡:"+y+"小鸡:"+z+"
");
}
}
}
···
···