Cod sursa(job #1853984)
Utilizator | Data | 22 ianuarie 2017 11:55:55 | |
---|---|---|---|
Problema | Ridicare la putere in timp logaritmic | Scor | 0 |
Compilator | cpp | Status | done |
Runda | Arhiva educationala | Marime | 0.12 kb |
int factorial (int n,int& x)
{
if (n==0)
{
x=1;return x;
}
factorial (n-1,x);
x=x*n;
}