View Code of Problem 73

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

Double click to view unformatted code.


Back to problem 73