Cod sursa(job #1973804)
| Utilizator | Data | 25 aprilie 2017 22:37:41 | |
|---|---|---|---|
| Problema | Factorial | Scor | 10 |
| Compilator | cpp | Status | done |
| Runda | Arhiva de probleme | Marime | 0.29 kb |
#include <iostream>
#include <fstream>
using namespace std;
int main()
{
ifstream in("fact.in");
ofstream out("fact.out");
long int numar;
in>>numar;
long int fact;
fact = numar*5;
if(fact==0){ out<<1;}
else
out<<fact;
return 0;
}
