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

8 lines
115 B
Python
Executable File

import sys
def fib(n):
if n < 2:
return n
return fib(n-1) + fib(n-2)
print(fib(int(sys.argv[1])))