Home > Back-end >  School work, ask everybody to give directions
School work, ask everybody to give directions

Time:04-23

Bear to eat corn, corn on the first day ate a half and took away a small bear, feed back the next day to eat the other half, when still take a back, every day to eat the day before the rest of the half, after take a, the first ten days, bear into the ground, with only a corn, corn for the field how many? (ball ball you great god help the younger brother, just learn c, this is the true can't,)

CodePudding user response:

 
Int n=9;
Printf (" % d days prior to the quantity of corn: % d \ n ", n, 3 * (1 & lt;

CodePudding user response:

 
int i;
int num;

For (I=10; I & gt; 0; I -) {
If (I==10) {
num=1;
} else {
Num=(num + 1) * 2
}
}