RosettaCodeData/Task/Detect-division-by-zero/Nanoquery/detect-division-by-zero.nanoquery

9 lines
80 B
Text
Raw Permalink Normal View History

2023-07-01 11:58:00 -04:00
def div_check(x, y)
try
(x / y)
return false
catch
return true
end
end