#include<stdio.h>标签:break,母鸡,公鸡,买百鸡,百钱,小鸡,问题,100 From: https://blog.51cto.com/u_15841203/5901833
int main()
{
int a,b,c;//a是公鸡,b是母鸡,c是小鸡
while(1)
{
for(a = 0;a<=20;a++)
{
for(b = 0;b<=33;b++)
{
for(c=0;c<=99;c++)
{
if((5*a+3*b+c/3==100)&&(a+b+c==100))
{
printf("%公鸡:%d,母鸡:%d,小鸡:%d\n",a,b,c);
}
}
}
}
break;
}
return 0;
}