Data commit
This commit is contained in:
parent
7387c8f97b
commit
cb5bb5e222
199093 changed files with 3378972 additions and 0 deletions
|
|
@ -0,0 +1,15 @@
|
|||
#! /usr/local/bin/newlisp
|
||||
|
||||
(define (check-division x y)
|
||||
(catch (/ x y) 'check-zero)
|
||||
(if (not (integer? check-zero))
|
||||
(setq check-zero "Division by zero."))
|
||||
check-zero
|
||||
)
|
||||
|
||||
(println (check-division 10 4))
|
||||
(println (check-division 4 0))
|
||||
(println (check-division 20 5))
|
||||
(println (check-division 11 0))
|
||||
|
||||
(exit)
|
||||
Loading…
Add table
Add a link
Reference in a new issue