View Code of Problem 73

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

Double click to view unformatted code.


Back to problem 73