#include<stdio.h> int main() { int n; scanf("%d",&n); int x=1; n--; while(n--) { x=(x+1)*2; } printf("%d\n",x); return 0; }
Double click to view unformatted code.