Guest User

Untitled

a guest
Nov 1st, 2015
117
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Lisp 0.18 KB | None | 0 0
  1. ;;;;1)
  2.  (define (factorial n)
  3.    (if (= n 0)
  4.        1
  5.        (* (factorial (- n 1)) n)))
  6.  
  7. ;;;;2)
  8.  (define (factorial n)
  9.   (if (> n 1)
  10.       (* n (factorial(- n 1)))
  11.       n))
Advertisement
Add Comment
Please, Sign In to add comment