View Code of Problem 73

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

Double click to view unformatted code.


Back to problem 73