Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- a = 0
- b = 1
- amt = int(input("Enter the amount of Fibbonacci numbers you would like to generate:"))
- for i in range(1,amt+1):
- print(b)
- temp = b
- b = a+b
- a = temp
- print("Done!")
Advertisement
Add Comment
Please, Sign In to add comment