Skip to content

Instantly share code, notes, and snippets.

@devrsantos
Created March 16, 2025 19:25
Show Gist options
  • Save devrsantos/a2ca4f4c1acf5851b3e7468d9188fc42 to your computer and use it in GitHub Desktop.
Save devrsantos/a2ca4f4c1acf5851b3e7468d9188fc42 to your computer and use it in GitHub Desktop.
limite = int(input("Digite o limite da sequência de Fibonacci: "))
a, b = 0, 1
while a <= limite:
print(a, end=" ")
a, b = b, a + b
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment