Code Review

Compare your solutions

    #| BEGIN (Введите свое решение) |#
(define (smallest a b) (if (< a b) a b))

(define (smallest-of-three first second third) 
    (smallest
    (smallest first second)
    (smallest second third)))

(define (square num) (* num num))

(define (sum-of-three-squares first second third)
    (+ (square first) (square second) (square third)))

(define (solution first second third)
    (-
        (sum-of-three-squares first second third)
        (square (smallest-of-three first second third))))


#| END |#