Cod sursa(job #275126)
| Utilizator | Data | 10 martie 2009 11:18:21 | |
|---|---|---|---|
| Problema | Factorial | Scor | 5 |
| Compilator | cpp | Status | done |
| Runda | Arhiva de probleme | Marime | 0.24 kb |
#include<iostream.h>
#include<fstream.h>
#include<math.h>
long p;
main()
{
ifstream f("fact.in");
ofstream g("fact.out");
f>>p;
if(p<0) g<<'1';
else g<<p*5;
f.close();
g.close();
}
