#include<iostream>
#include<math.h>
using namespace std;
int main(){
int i=1;
double sum=0;
for(i=1;i<=64;i++){
sum=sum+pow(2,i-1);
}
printf("%f",sum);
}
标签:std,includeusing,16,int,sum,main From: https://www.cnblogs.com/guozi6/p/17386124.html
#include<iostream>
#include<math.h>
using namespace std;
int main(){
int i=1;
double sum=0;
for(i=1;i<=64;i++){
sum=sum+pow(2,i-1);
}
printf("%f",sum);
}
标签:std,includeusing,16,int,sum,main From: https://www.cnblogs.com/guozi6/p/17386124.html