Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- ;Exercise 1.12 - Write a procedure that computes elements of
- ; Pascal's Triangle via a recursive process.
- (define (pascal row col)
- (if (or (= row col) (= col 1))
- 1
- (+ (pascal (- row 1) (- col 1)) (pascal (- row 1) col))))
Add Comment
Please, Sign In to add comment