Cod sursa(job #260963)
Utilizator | Data | 17 februarie 2009 19:37:32 | |
---|---|---|---|
Problema | Factorial | Scor | 10 |
Compilator | cpp | Status | done |
Runda | Arhiva de probleme | Marime | 0.21 kb |
#include <stdio.h>
long P;
int main()
{
freopen ("fact.in","r",stdin);
freopen ("fact.out","w",stdout);
scanf("%ld",&P);
if (P == 0)
printf("%ld\n",1);
else
printf("%ld\n",P * 5);
return 0;
}