View Code of Problem 73

#include <stdio.h>
int main()
{
  int n,x,i;
  scanf("%d",&n);
  x = 1;
  for(i=1;i<n;i++)
  {
    x = (x+1)*2;
  }
  printf("%d",x);
  return 0;
}

Double click to view unformatted code.


Back to problem 73