Cod sursa(job #1021949)
| Utilizator | Data | 4 noiembrie 2013 15:09:07 | |
|---|---|---|---|
| Problema | Factorial | Scor | 5 |
| Compilator | cpp | Status | done |
| Runda | Arhiva de probleme | Marime | 0.23 kb |
#include <stdlib.h>
#include <stdio.h>
int main()
{
int p;
freopen("fact.in", "rt", stdin);
freopen("fact.out", "wt", stdout);
scanf("%d", &p);
printf("%d",p*5 - (p%5 == 0) * 5);
return 0;
}
