View Code of Problem 73

#include <iostream>
using namespace std;

int main(){
  int n,sum=1;
  cin>>n;
  for(int j=0;j<n-1;j++){
    sum = (sum+1)*2;
  }
  printf("%d",sum);
  return 0;
}

Double click to view unformatted code.


Back to problem 73