hdarwin

cstutoringcenter.com_Fibonacci Sequence IV

Jan 2nd, 2013
100
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(998):
  5.     tmp = new
  6.     new = new + old
  7.     old = tmp
  8. print len(str(new))
Advertisement
Add Comment
Please, Sign In to add comment