Skip to content

Instantly share code, notes, and snippets.

@wiltonbsilva
Created June 21, 2014 14:36
Show Gist options
  • Save wiltonbsilva/eb470633c94d69a6257e to your computer and use it in GitHub Desktop.
Save wiltonbsilva/eb470633c94d69a6257e to your computer and use it in GitHub Desktop.
sicp notes
(define (square x)
(* x x))
(define (sum-squares x y)
(+ (square x) (square y)))
(define (test-square)
(= 144 (square 12)))
(define (test-sum-squares)
(= 13 (sum-squares 2 3)))
(test-square)
(test-sum-squares)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment