Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Newer
Older
100644 11 lines (8 sloc) 0.13 kb
07bb9f2 1.4.0
matz authored
1 # calculate Fibonacci(20)
2 # for benchmark
3 def fib(n):
4 if n<2:
5 return n
6 else:
7 return fib(n-2)+fib(n-1)
8
9 print fib(20)
10
Something went wrong with that request. Please try again.