View Code of Problem 73

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

Double click to view unformatted code.


Back to problem 73