View Code of Problem 73

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

Double click to view unformatted code.


Back to problem 73