#include <stdio.h>
int main()
{
int day,n,money;
day=1;
n=2;
money=0;
while(n<100)
{
money=money+n*0.8;
n=n*2;
day++;
}
float ave;
ave=money/day;
printf("The result is %.6f",ave);
return 0;
}
阳阳买苹果
最新推荐文章于 2024-09-04 21:39:45 发布