View Code of Problem 73

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





return 0;
}

Double click to view unformatted code.


Back to problem 73