View Code of Problem 73

#include<stdio.h>
#include<math.h>
#include <string.h>
#define Max 1000
int main ()
{
	int day,sum;
	int x2=1;
	scanf("%d",&day);
	while(day-1)
	{
		sum=(x2+1)*2;
		x2=sum;
		day--;
	}
	printf("%d",sum);
	
	return 0;

}

Double click to view unformatted code.


Back to problem 73