View Code of Problem 73

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

Double click to view unformatted code.


Back to problem 73