舍罕王的失算
#include <stdio.h>
#include <math.h>
int main()
{
double sum=0;
for(int i=1;i<=64;i++){
sum=sum+pow(2,i-1);
}
printf("国王总共需要赏赐给宰相的麦子数为:\n%f\n",sum);
}
标签:include,15,int,sum,打卡,main From: https://www.cnblogs.com/0608lin/p/17391365.html