Created
February 2, 2019 01:01
-
-
Save parzibyte/70dc596d50a34ced3e960d578f162dbd 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
/** | |
Factorial calculado con recursión | |
en Java | |
@author parzibyte | |
*/ | |
public static long factorialRecursivo(long numero) { | |
if (numero <= 1) | |
return 1; | |
return numero * factorialRecursivo(numero - 1); | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment