-
-
Save parzibyte/f73e3e5cbd1dc60237f2f15b6ebf35ae 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
long potenciaRecursiva(long numero, long potencia) | |
{ | |
if (potencia <= 0) | |
{ | |
return 1; | |
} | |
else | |
{ | |
return numero * potenciaRecursiva(numero, potencia - 1); | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment