Answers for "lua return from function"

Lua
1

function return lua

function factorial(x)
  if x == 1 then
    return 1
  end
  return x * factorial(x-1)
end
Posted by: Guest on February-18-2021

Code answers related to "lua return from function"

Browse Popular Code Answers by Language