Cod sursa(job #240925)

Utilizator lucibicsiLucian Bicsi lucibicsi Data 8 ianuarie 2009 21:55:07
Problema Factorial Scor 0
Compilator cpp Status done
Runda Arhiva de probleme Marime 0.23 kb
#include<fstream.h>
ifstream f("fact.in");
ofstream g("fact.out");
int zero(int n)
{
int s;
   while(n)
{
n=n/5;
s=s+n;
}
return s;
void main()
{
int p;
f>>p;
for(int N=5;!gata;N++)
if(zero(N)==p)
gata=0;
g<<N;