hdarwin

cstutoringcenter.com_Fibonacci Sequence III

Jan 2nd, 2013
108
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Python 0.12 KB | None | 0 0
  1. old = 1
  2. new = 1
  3. sum = 0
  4. for x in xrange(73):
  5.     tmp = new
  6.     new = new + old
  7.     old = tmp
  8.     sum += new
  9. print sum+2
Advertisement
Add Comment
Please, Sign In to add comment