Skip to content

Instantly share code, notes, and snippets.

@aberant
Forked from redsquirrel/gist:189192
Created September 20, 2009 19:56
Show Gist options
  • Save aberant/189904 to your computer and use it in GitHub Desktop.
Save aberant/189904 to your computer and use it in GitHub Desktop.
( define ( sum-of-squares x y )
(+ (* x x) (* y y))
)
( define ( exercise_answer x y z )
( if ( > x y )
( if ( > y z )
( sum-of-squares x y )
( sum-of-squares x z )
)
( if ( > x z )
( sum-of-squares x y)
( sum-of-squares z y)
)
)
)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment