orca/ext/wasm3/test/lang/fib.py

8 lines
115 B
Python
Raw Normal View History

2023-04-12 14:21:03 +00:00
import sys
def fib(n):
if n < 2:
return n
return fib(n-1) + fib(n-2)
print(fib(int(sys.argv[1])))