#include
int main()
{
double average,sum=0.0;
int a=2,day=0;
while(a<=100){
sum+=a;
a*=2;
day++;
}
average=sum*0.8/day;
printf("%fn", average);
return 0;
}
欢迎分享,转载请注明来源:内存溢出
#include
int main()
{
double average,sum=0.0;
int a=2,day=0;
while(a<=100){
sum+=a;
a*=2;
day++;
}
average=sum*0.8/day;
printf("%fn", average);
return 0;
}
欢迎分享,转载请注明来源:内存溢出
评论列表(0条)