View Code of Problem 73

#include<iostream>
#include <stdio.h>
#include <string.h>
using namespace std;


int main() {
	int n;
	scanf("%d", &n);
	int m = 1;
	for (int i = 1; i < n; i++) {
		m = (1 + m) * 2;
	}
	printf("%d", m);
	return 0;
}	

Double click to view unformatted code.


Back to problem 73