Created
December 3, 2019 06:47
-
-
Save parzibyte/f0711a1285e6eafd18d96b1e571b507f to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
unsigned long long factorial(unsigned long long numero) { | |
// Si hemos llegado a 1, detenemos la recursión | |
if (numero <= 1) | |
return 1; | |
return numero * factorial(numero - 1); // Restar 1 | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment