#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.