Advertisement
Guest User

Untitled

a guest
Dec 8th, 2020
88
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Scheme 0.20 KB | None | 0 0
  1. (define (sumSqr x y z)
  2.   (cond ((and (> x y) (> z y)) (+ (* x x) (* 2 x z) (* z z)))
  3.   ((and (> y x) (> z x)) (+ (* y y) (* 2 z y) (* z z)))
  4.   ((and (> x z) (> y z)) (+ (* x x) (* 2 x y) (* y y)))))
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement