Cod sursa(job #1135285)
Utilizator | Data | 7 martie 2014 17:07:25 | |
---|---|---|---|
Problema | Factorial | Scor | 10 |
Compilator | cpp | Status | done |
Runda | Arhiva de probleme | Marime | 0.18 kb |
#include <fstream>
using namespace std;
ifstream in("fact.in");
ofstream out("fact.out");
int main()
{
int p;
in>>p;
if(p==0) out<<"1";
else out<<p*5;
return 0;
}