My first Scheme program
Mar 6, 2018
I have started to reading Structure and Interpretation of Computer Programs since last week. And I finished a few exercise of the first chapter. And this is one of them.
Exercise 1.3. Define a procedure that takes three numbers as arguments and returns the sum of the squares of the two larger numbers.
Following is my solution:
1 | (define (min x y) (if (< x y) x y)) |