Fibonacci numbers in Falcon
Example for versions
Falcon 0.9.6.6
This example uses recursive definition of Fibonacci numbers.
function fib(n)
if n <= 2 : return 1
return fib(n-1) + fib(n-2)
end
for i in [1:17]
print (fib(i), ", ")
end
printl ("...")
Comments
]]>blog comments powered by Disqus
]]>