3.程序流程图
4.代码实现
#include<bits/stdc++.h> using namespace std; main() { double sum = 0; int i; for(i=1;i<=64;i++) sum = sum + pow(2,i-1); printf("国王总共需要赏赐给宰相的麦子数为: \n%f\n", sum); }
5.测试截图
标签:std,int,namespace,5.23,打卡,main From: https://www.cnblogs.com/binglinll/p/17424264.html