View Code of Problem 73

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

Double click to view unformatted code.


Back to problem 73