Cod sursa(job #721306)

Utilizator w3.playerCostescu Ionut w3.player Data 23 martie 2012 16:17:35
Problema Patrate2 Scor 10
Compilator cpp Status done
Runda Arhiva de probleme Marime 0.27 kb
#include <fstream>
using namespace std;
int n,i;
double x=2;

int main()
{
	ifstream inf("patrate2.in");
	inf >> n;
	inf.close();
	if (n!=1)
		for (i=1; i<n*n+1; i++)
			x*=2;
	ofstream outf("patrate2.out");
	outf << x << '\n';
	outf.close();
	return 0;
}