summaryrefslogtreecommitdiff
path: root/jni/ruby/benchmark/other-lang/fib.py
blob: 45f2bceb8dafa0df9bf9ed3d4c01ea7d3167d620 (plain)
1
2
3
4
5
6
7
def fib(n):
  if n < 3:
    return 1
  else:
    return fib(n-1) + fib(n-2)

fib(34)