View Code of Problem 73

#include<bits/stdc++.h>
using namespace std;
int main()
{
	int n,s=1;
	scanf("%d",&n);
	for(int i=1;i<n;i++)
	{
		s=(s+1)*2;
	}
	printf("%d\n",s);
	return 0;
}

Double click to view unformatted code.


Back to problem 73