Friday, October 25, 2013

Fibonacci series


# Fibonacci series:
# the sum of two elements defines the next
b, c = 0, 1
while c < 200:
       print c,
       b, c = c, b+c

Console Output :
1 1 2 3 5 8 13 21 34 55 89 144