Cod sursa(job #730464)
Utilizator | Data | 6 aprilie 2012 12:49:38 | |
---|---|---|---|
Problema | Factorial | Scor | 10 |
Compilator | cpp | Status | done |
Runda | Arhiva de probleme | Marime | 0.26 kb |
#include <fstream>
#include <cmath>
using namespace std;
ifstream fin("fact.in");
ofstream fout("fact.out");
int factorial();
int main()
{
int p;
fin >> p;
if(p == 0)
fout << 1;
else
fout << p * 5;
fin.close();
fout.close();
return 0;
}