This repository has been archived on 2025-04-07. You can view files and clone it, but cannot push or open issues or pull requests.
kurz/tests/recursion.qbl
2022-12-31 16:09:55 +01:00

17 lines
217 B
Plaintext

//valid,10946
//:END:
function int int int int => int fibonacci
{
dup 0 == req req req req
if
{
req deq deq deq
}
else
{
dup + req 1 req swp - req req req fibonacci
}
}
20 0 1 0 fibonacci intToStr println