CodePudding user response:
The answer is not correct or zha dropsCodePudding user response:
The elder brothers, you need to ask is what ah? How to just posted code? To be the problem?CodePudding user response:
You play games, and you guess you guess you guessCodePudding user response:
# include & lt; stdio.h>
//5 yuan a hen, 3 yuan a rooster, chicken three only 1 yuan, 100 yuan to buy the 100 chickens, now all have?
Int main () {
Int I=0, j=0, k=3;
for(i=0; i<=19; I++) {
for(j=0; j<=(100-5 * I)/3; J++) {
For (k=3; K<=(I - 100-5 * 3 * j) * 3; K + {
=3)If (I * * 3 + 5 + j k/3==100 & amp; & I + j + k==100) {
Printf (" % d, only hen rooster % d, only chicken % d \ n ", I, j, k);
}
}
}
}
return 0;
}