设买公鸡,母鸡,小鸡分别为x,y,z
main()
{ int x,y,z,s,t,a,m;
x=1;
y=1;
z=1;
s=0;
t=x+y+z==100;
a=1/3*z+3*x+5*y==100;
while(x++<32)
{
while(y++<20)
{
while(z++<277)
{
if( t==1&&a==1)
s++;
else
continue;
}
}
}
while(x==1&&z==6)
{
m=100-5;}
printf("the numbers of the method are %d",s);
printf("the maximum of hen is %d",m);
}