用 100 元钱买 100 只鸡,已知公鸡每只 5 元,母鸡每只 3 元,小鸡每 3 只 1 元,问公鸡、母鸡和小鸡各买多少只?请完善程序。 #include
using namespace std; int main(void) { int cock,hen,chicken; for(cock=1;cock<=20;cock++) for(hen=1;hen<=33;hen++){ chicken=____; if(____&&____) cout<
<<'\t'<
<<'\t'<
<<'\n'; } return 0; }