Cod sursa(job #2255416)
Utilizator | Data | 6 octombrie 2018 21:57:24 | |
---|---|---|---|
Problema | Factorial | Scor | 0 |
Compilator | cpp | Status | done |
Runda | Arhiva de probleme | Marime | 0.21 kb |
#include <iostream>
#include <fstream>
using namespace std;
ifstream fin("fact.in");
ofstream fout("fact.out");
int main()
{
int p;
fin>>p;
if(p!=0)fout<<1;
else fout<<5*p;
return 0;
}