根据上面的分析,编写程序如下:
#include stdio.h>
void main()
{
int cock,hen,chicken;
for(cock=0;cock=20;cock++)
for(hen=0;hen