View Code of Problem 73

#include <iostream>
using namespace std;
int main(){
	int n;
	cin>>n;
	int x = 1;
	for(int i=0;i<n-1;i++){
		x += 1;
		x = x*2;
	}
	cout<<x;
}

Double click to view unformatted code.


Back to problem 73