-
-
Save parzibyte/dbbfcccd990c466b4dc80d5dc20269a5 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
posicion = 20 | |
# Obtener valor pero no imprimir | |
valor = fibonacci_iterativo(posicion, False) | |
print(f"\nFibonacci de {posicion} con método iterativo es {valor}") | |
# Lo mismo de arriba pero con el método iterativo | |
valor = fibonacci_recursivo(posicion) | |
print(f"Fibonacci de {posicion} con método recursivo es {valor}") |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment