Code Review

Compare your solutions

    #| This exercise has no tests.
Any solution is a right answer. |#

10
10

(+ 5 3 4)
12

(- 9 1)
8

(/ 6 2)
3

(+ (* 2 4) (- 4 6))
(+ 8 2)
10

(define a 3)
a = 3

(define b (+ a 1))
b = 4

(+ a b (* a b))
(+ a b 12)
19

(= a b)
4

(if (and (> b a) (< b (* a b)))
    b
    a)
a

(cond ((= a 4) 6)
      ((= b 4) (+ 6 7 a))
      (else 25))
16

(+ 2 (if (> b a) b a))
(+ 2 b a)
9

(* (cond ((> a b) a)
         ((< a b) b)
         (else -1))
   (+ a 1))
(* (+ a 1) b )
(* 4 4)
16