求助!本人菜鸟,寻求帮助!
求助!麻烦各位帮忙看看这段程序问题出在哪了,非常感谢!main()
{ int cocks=0,hens,chicks;
while(cocks<=19)
{hens=0;
while(hens<=33)
{chicks=100-cocks-hens;
if(5.0*cocks+3.0*hens+chicks/3==100.0
printf("%d%d%d\n",cocks,hens,chicks);
hens++
}
cocks++
}
getchar();
system("pause");
}