RosettaCodeData/Task/Amb/Common-Lisp/amb-5.lisp

11 lines
233 B
Common Lisp
Raw Permalink Normal View History

2023-07-01 11:58:00 -04:00
(defun magic-square (a b c d e f g h i)
(and (/= a b c d e f g h i)
(= (+ a b c)
(+ d e f)
(+ g h i)
(+ a d g)
(+ b e h)
(+ c f i)
(+ a e i)
(+ c e g))))