Cod sursa(job #541144)
Utilizator | Data | 24 februarie 2011 20:57:12 | |
---|---|---|---|
Problema | Factorial | Scor | 0 |
Compilator | cpp | Status | done |
Runda | Arhiva de probleme | Marime | 0.28 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;
}