View Code of Problem 73

#include<bits/stdc++.h>
using namespace std;
#define max 100000

int main(){
	int n,sum = 1;
	cin>>n;
	n-=1;
	while(n--){
		sum = (sum + 1)*2;
	}
	cout<<sum;
	return 0;
}

Double click to view unformatted code.


Back to problem 73