Python By Code
Showing posts with label
fibonacci series
.
Show all posts
Showing posts with label
fibonacci series
.
Show all posts
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
Older Posts
Home
Subscribe to:
Posts (Atom)