Cod sursa(job #1110217)

Utilizator IonutIlieIonut Ilie IonutIlie Data 17 februarie 2014 21:27:00
Problema Factorial Scor 25
Compilator cpp Status done
Runda Arhiva de probleme Marime 0.33 kb
#include<fstream>
using namespace std;
ifstream f("fact.in");
ofstream g("fact.out");
int main()
{
    int n,i=0,j,k=0,p;

    f >> p;
if(p == 0 )g << 1;else{
    while(k < p )
    {
        i++;j = i;
        while( j % 5 == 0)
        { k++;
          j/=5;
        }


    }


g << i;

}


    return 0;
}