RosettaCodeData/Task/Integer-comparison/Emacs-Lisp/integer-comparison.el

8 lines
316 B
EmacsLisp
Raw Permalink Normal View History

2026-04-30 12:34:36 -04:00
(defun integer-comparison (a b)
"Compare A to B and print the outcome in the message buffer."
(interactive "nFirst integer ⇒\nnSecond integer ⇒")
(cond
((< a b) (message "%d is less than %d." a b))
((> a b) (message "%d is greater than %d." a b))
((= a b) (message "%d is equal to %d." a b))))