Detect division by zero: Difference between revisions

Add SmallBASIC
(Add SmallBASIC)
 
Line 357:
If err = 11 Then print "Division by Zero"
wait</syntaxhighlight>
 
==={{header|SmallBASIC}}===
<syntaxhighlight lang="qbasic">
try
a = 1/0
catch error
print error
a = nil
end try
 
print a
</syntaxhighlight>
 
==={{header|TI-89 BASIC}}===
29

edits