Cod sursa(job #85446)
Utilizator | Data | 21 septembrie 2007 16:18:26 | |
---|---|---|---|
Problema | Factorial | Scor | 0 |
Compilator | cpp | Status | done |
Runda | Arhiva de probleme | Marime | 0.24 kb |
#include<stdio.h>
#include<math.h>
long cinci,p,i;
int main()
{
freopen("fact.in","r",stdin);
freopen("fact.out","w",stdout);
scanf("%ld",&p);
i=1;
while(cinci<p)
{
i++;
while(cinci%5==0)
tot++;
}
printf("%ld",tot);
}