Thursday, November 18, 2010

Fibonacci sequence

one=1
two=1
For n = 1 to 100
Print one
print two
one=one + two
two=two + one
next n

No comments:

Post a Comment