Advertisement
Guest User

Untitled

a guest
Jul 10th, 2017
47
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Scheme 0.37 KB | None | 0 0
  1. (define (square a) (* a a))
  2. (define (sumsquare a b) (+ (square a) (square b)))
  3. (define (proc1 a b c) (cond
  4.  (or (>= a b c) (>= b a c)) (sumsquare a b)
  5.  (or (>= a c b) (>= c a b)) (sumsquare a c)
  6.  (or (>= b c a) (>= c b a)) (sumsquare b c)
  7. ))
  8.  
  9.  
  10. Warning: the following toplevel variables are referenced but un\
  11. bound:
  12.   or (in proc1)
  13.   or (in proc1)
  14.   or (in proc1)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement