View Code of Problem 73

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

Double click to view unformatted code.


Back to problem 73