hdarwin

cstutoringcenter.com_Fibonacci Sequence II

Jan 2nd, 2013
98
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Python 0.14 KB | None | 0 0
  1. old = 1
  2. new = 1
  3. while True:
  4.     tmp = new
  5.     new = new + old
  6.     old = tmp
  7.     if len(str(new)) == 15:
  8.         print new
  9.         break
Advertisement
Add Comment
Please, Sign In to add comment