Cod sursa(job #1181834)
Utilizator | Data | 3 mai 2014 22:26:36 | |
---|---|---|---|
Problema | Factorial | Scor | 10 |
Compilator | cpp | Status | done |
Runda | Arhiva de probleme | Marime | 0.22 kb |
#include <iostream>
#include <fstream>
using namespace std;
ifstream f;
ofstream g;
long int n,k,p,i;
main()
{
f.open("fact.in");
g.open("fact.out");
f>>p;
if(p!=0)g<<p*5;
else g<<1;
g.close();
}