View Code of Problem 73

#include<stdio.h>
int main()
{
	int d,x1,x2=1;
	scanf("%d",&d);
	while(d-1)
	{
		x1=(x2+1)*2;
		x2=x1;
		d--;
	}
	printf("%d",x1);
    return 0;
}

Double click to view unformatted code.


Back to problem 73