sicp exercise 1.3

This commit is contained in:
Marco 2024-08-20 16:44:37 +02:00
parent fb6baaa630
commit a92e918950

13
exercise1-3.scm Normal file
View File

@ -0,0 +1,13 @@
(define (square-sum-larger-two a b c)
(if (< a b)
(if (< a c)
(+ (* c c) (* b b))
(+ (* a a) (* b b)))
(if (> c b)
(+ (* c c) (* a a))
(+ (* b b) (* a a)))
)
)
(print (square-sum-larger-two 4 3 2))