View Code of Problem 73

#include<cstdio>
#include<iostream>
using namespace std;
int main() {
	int n;
	cin >> n;
	int sum=1;
	n--;
	while(n--){
		sum++;
		sum*=2;
	}
	cout << sum;
}

Double click to view unformatted code.


Back to problem 73