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: mcc and 3 guests