View Code of Problem 73

#include<stdio.h>
void main()
{
	int n,sum,x;
	scanf("%d", &n);
	x = 1;
	for (int i = 0; i < n-1; i++)
	{
		x = (x + 1) * 2;
	}
	printf("%d", x);
}

Double click to view unformatted code.


Back to problem 73