View Code of Problem 73

#include<bits/stdc++.h>
using namespace std;
int main() {
	int N, sum=1;
	cin>>N;
	for(int i=1; i<N; i++) sum=(1+sum)*2;
	cout<<sum<<endl;
}

Double click to view unformatted code.


Back to problem 73