Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- def fibonacci(n):
- if(n <= 1):
- return n
- else:
- return (fibonacci(n-1) + fibonacci(n-2))
- n = int(input("Entrez jusqu a quel nombre on veut:"))
- for i in range(n):
- print(fibonacci(i))
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement