YAPC::EU 2018 Glasgow Update!
This commit is contained in:
parent
22f33d4004
commit
4e2d22a71d
1170 changed files with 15042 additions and 3047 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