水题
#include <bits/stdc++.h>
using namespace std;
int main()
{
int n,sum=1;
cin>>n;
for(int i=1;i<=n;i++)
{
sum=sum*2;
}
cout << "2^" << n << " = " <<sum <<endl;
return 0;
}
标签:std,return,水题,训练,int,天体,计算,main,sum
来源: https://www.cnblogs.com/qq-1585047819/p/10477753.html