mirror of
https://github.com/wren-lang/wren.git
synced 2026-01-12 14:48:40 +01:00
10 lines
186 B
Python
10 lines
186 B
Python
import time
|
|
|
|
def fib(n):
|
|
if n < 2: return n
|
|
return fib(n - 1) + fib(n - 2)
|
|
|
|
start = time.clock()
|
|
for i in range(0, 5):
|
|
print(fib(30))
|
|
print("elapsed: " + str(time.clock() - start)) |