#include
void main()
{undefined
int day=1,num,t=0,i=2;
double average,money;
while(t<100) //判断条件是所有买的苹果数小于100
{undefined
t+=i;
i=i*2;
day++;
}
num=t-i/4; //计算出总共的个数
money=num*0.8; //计算出花的所有的钱
printf("the nums of apple is %dn",num);
printf("the totle money is %fn",money);
average=money/(day-2);
printf("the ave price is %fn",average);