View Code of Problem 73

#include <stdio.h>
int main()
{
	int x=1,n;
  	scanf("%d",&n);
  	for(int i=1;i<=n-1;++i)
          x=(x+1)*2
	printf("%d",x);
 
 
 
}
/*
Main.c: In function 'main':
Main.c:9:2: error: expected ';' before 'printf'
  printf("%d",x);
  ^
*/

Double click to view unformatted code.


Back to problem 73