Cod sursa(job #2624833)
| Utilizator | Data | 5 iunie 2020 15:23:42 | |
|---|---|---|---|
| Problema | Factorial | Scor | 5 |
| Compilator | cpp-64 | Status | done |
| Runda | Arhiva de probleme | Marime | 0.25 kb |
#include <iostream>
#include <fstream>
using namespace std;
int p, n=0;
int nr_zero(int x){return x/5;}
int main()
{ifstream in("fact.in");
ofstream out("fact.out");
in >> p;
while (nr_zero(n) < p)
n++;
out << n;
in.close();
out.close();
}
