RosettaCodeData/Task/Integer-comparison/Scheme/integer-comparison.ss

7 lines
163 B
Scheme
Raw Permalink Normal View History

2013-04-10 21:29:02 -07:00
(define (my-compare a b)
(cond ((< a b) "A is less than B")
((> a b) "A is greater than B")
((= a b) "A equals B")))
(my-compare (read) (read))