This website requires JavaScript.
Explore
Help
Sign In
prod2
/
nondescript
Watch
1
Star
1
Fork
You've already forked nondescript
0
Code
Issues
Pull Requests
Projects
Releases
Wiki
Activity
f79f4e47ba
nondescript
/
benchmarks
/
fib.nds
6 lines
99 B
Plaintext
Raw
Normal View
History
Unescape
Escape
rename funct to proc
2022-02-09 06:58:51 +01:00
var fib = proc(n)
create an nds testing tool
2022-02-05 02:45:29 +01:00
if (n < 2) :result = 1
change ^ to :, remove automatic ^
2022-01-29 22:47:23 +01:00
else :result = fib(n-1) + fib(n-2)
function implementation prototype
2022-01-21 01:51:55 +01:00
;
natives
2022-02-07 05:35:07 +01:00
print (fib(37));