RosettaCodeData/Task/Detect-division-by-zero/Lua/detect-division-by-zero.lua

5 lines
70 B
Lua
Raw Permalink Normal View History

2020-02-17 23:21:07 -08:00
local function div(a,b)
if b == 0 then error() end
return a/b
2013-04-10 12:38:42 -07:00
end