第一题:
#include <stdio.h>
int main()
{
int day,num;
num=1;
for(day=9;day>0;day--)
num=(num+1)*2;
printf("The totle number of peach is:%d\n",num);
return 0;
}
#include <stdio.h>
int main()
{
int day,num;
num=1;
for(day=9;day>0;day--)
num=(num+1)*2;
printf("The totle number of peach is:%d\n",num);
return 0;
}