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