#include<stdio.h>
void main()
{
int cock,hen,chick,count=0;
for(cock=0;cock<=20;cock++)
for(hen=0; hen<=33; hen++) {
chick=100-cock-hen;
if(chick%3==0&&
5*cock+3*hen+chick/3==100){
count++;
printf("(%d)cock=%d hen=%d
chick=%d\n“,count,cock,hen,chick);
}
}
}
void main()
{
int cock,hen,chick,count=0;
for(cock=0;cock<=20;cock++)
for(hen=0; hen<=33; hen++) {
chick=100-cock-hen;
if(chick%3==0&&
5*cock+3*hen+chick/3==100){
count++;
printf("(%d)cock=%d hen=%d
chick=%d\n“,count,cock,hen,chick);
}
}
}