Cod sursa(job #826571)
Utilizator | Data | 30 noiembrie 2012 21:21:48 | |
---|---|---|---|
Problema | Factorial | Scor | 5 |
Compilator | cpp | Status | done |
Runda | Arhiva de probleme | Marime | 0.27 kb |
#include<fstream>
#include<math.h>
using namespace std;
ifstream fin("fact.in");
ofstream fout("fact.out");
int main()
{
int n,p,i,k,f;
fin>>p;
for(i=1;i<=pow(5,p);i++)
{
n=n*i;
f=pow(5,k);
}
fout<<f;
fin.close();
fout.close();
return 0;
}