Guest User

Untitled

a guest
Feb 19th, 2018
72
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.24 KB | None | 0 0
  1. ;Exercise 1.12 - Write a procedure that computes elements of
  2. ; Pascal's Triangle via a recursive process.
  3. (define (pascal row col)
  4. (if (or (= row col) (= col 1))
  5. 1
  6. (+ (pascal (- row 1) (- col 1)) (pascal (- row 1) col))))
Add Comment
Please, Sign In to add comment