RosettaCodeData/Task/Exceptions/Logo/exceptions.logo

8 lines
143 B
Plaintext

to div.checked :a :b
if :b = 0 [(throw "divzero 0)]
output :a / :b
end
to div.safely :a :b
output catch "divzero [div.checked :a :b]
end