RosettaCodeData/Task/Integer-comparison/Racket/integer-comparison.rkt

10 lines
239 B
Racket
Raw Permalink Normal View History

2013-06-05 21:47:54 +00:00
#lang racket
(define (compare-two-ints a b)
(define compared
(cond ((> a b) "is greated than")
((= a b) "equals")
((< a b) "is lesser than")))
(format "~a ~a ~a" a compared b))
(compare-two-ints (read) (read))