Cod sursa(job #898388)

Utilizator Sony4ceAndrei Bolos Sony4ce Data 28 februarie 2013 10:10:58
Problema Factorial Scor 10
Compilator cpp Status done
Runda Arhiva de probleme Marime 0.21 kb
#include <fstream>
using namespace std;
int main()
{
	ifstream f("fact.in");
	ofstream g("fact.out");
	int P,N;
	f>>P;
	N=P*5;
	if (P!=0)
		g<<N;
	else
		g<<'1';
	f.close();
	g.close();
	return 0;
}