View Code of Problem 73

#include <stdio.h>
using namespace std;
int main(){
	
	int k = 1;
	int N;
	scanf("%d", &N );
	int sum = 0; 
	while( --N ){
		k = (k+1)*2;
	}
	printf("%d", k );
	return 0;
	
}

Double click to view unformatted code.


Back to problem 73