[plt-scheme] Combining digits to form numbers
This how i solved this problem .I have made another procedure for guess
thinking that the number returned by it depends on lsb , csb and
msb.Therefore it should be another procedure.
(define check-guess3 (lambda(lsb csb msb target)
(cond
[(< guess(lsb csb msb) target) 'Toosmall]
[(= guess(lsb csb msb) target) 'Perfect]
[else 'Toolarge])))
(define guess (lambda (lsb csb msb)
(+(* msb 100)(* csb 10) (* lsb 1))))
Aditya
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.racket-lang.org/users/archive/attachments/20090217/f231af27/attachment.html>