Python By Code
Wednesday, July 8, 2015
[Fibonacci series]
n=input("Which number fibonacci upto")
first=0
second=1
i=0
while i <= n:
nextno =first + second
first=second
second=nextno
i=i+1
print nextno
No comments:
Post a Comment
Newer Post
Older Post
Home
Subscribe to:
Post Comments (Atom)
No comments:
Post a Comment