Cod sursa(job #541132)
Utilizator | Data | 24 februarie 2011 20:52:53 | |
---|---|---|---|
Problema | Factorial | Scor | 0 |
Compilator | cpp | Status | done |
Runda | Arhiva de probleme | Marime | 0.27 kb |
#include<iostream.h>
#include<fstream.h>
int main()
{
long a,p,i;
ifstream fisiercitire(fact.in);
ofstream fisierscriere(fact.out);
fisiercitire>>p;
a=p*5;
for(i=i,a;i++)
{
p*=i;
}
fisierscriere<<p;
fisiercitire.close();
fisierscriere.close();
return 0;
}