What is wrong in this program:
(setq x (read))
(define y x)
(if (eql y 1) (write "1"))
(else (write "2"))
(let*((x (read)) (y x)) ;LET for local variables, LET* is the variant where the order matters. (y is pretty pointless)
(if (eql y 1) (write "1") ;Note that print is more usually used for stuff like this.
Users browsing this forum: logxor and 2 guests