numbbbbb / sicp

收录我完成的练习题
719 stars 151 forks source link

e1-3 没有考虑相等的情况 #3

Open marcocpt opened 6 years ago

marcocpt commented 6 years ago

(define (e13 a b c ) (cond ((and (<= a b) (<= a c)) (+ (square b) (square c))) ((and (<= b a) (<= b c)) (+ (square a) (square c))) (else (+ (square a) (square b))) ) )