- 写一个函数,接受三个数作为参数
- 判断三个数中较大的两个数
- 计算较大两个数的平方和(两个数的平方之和)
(define (sum-square-largest x y z)
(cond ((and (< x y) (< x z)) ;; x is smallest
(+ (* y y) (* z z)))
(else (sum-square-largest y z x))))
(cond ((and (< x y) (< x z)) ;; x is smallest
(+ (* y y) (* z z)))
(else (sum-square-largest y z x))))