Monkeys eat peach problem?
Users questions: Monkeys eat peach issues: a number of monkeys off the first day of peaches, a half-eaten immediately, not good enough, and eat half. The next morning, turn the remaining half of peach to eat, and eat one. Ate the day before yesterday morning after the remaining half of the zero-one. To 10 when the morning to eat, see only A peach of. Asked how much the first day were picked peaches.
Experts answer:main () {intday, x1, x2; day = 9; x2 = 1; while (day 0) {x1 = (x2 +1) * 2; ** the first day of the first two days the number of peaches peaches number plus 1 of 2 **x2=x1;day**;}printf( thetotalis%d*n ,x1);system( pause );}