Posted By

medikgt on 07/03/09


Tagged


Versions (?)

Who likes this?

1 person have marked this snippet as a favorite

danielfilho


Fibonacci


 / Published in: Python
 

  1. def fibon(n):
  2. if n<2:
  3. return n
  4. else:
  5. return fibon(n-1) + fibon(n-2)
  6.  
  7. print fibon(30)

Report this snippet  

You need to login to post a comment.