Computational Physics
Search This Blog
Thursday, December 30, 2010
Fibonacci series
#Fibanocci series
a=0
b=1
n=input("Howmany elements of Fibanocci series?")
for i in range(n):
print b
a,b=b,b+a
# End of program
by Prof.
Purushothaman Vadakkedam
No comments:
Post a Comment
Newer Post
Older Post
Home
Subscribe to:
Post Comments (Atom)
No comments:
Post a Comment