Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- n = int(input('Enter the number: '))
- n1 = 0
- n2 = 1
- count = 0
- print("The "+str(n)+"th fibonacci serise:")
- while count < n:
- print(n1,end=' , ')
- nth = n1 + n2
- n1 = n2
- n2 = nth
- count += 1
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement