Advertisement
Guest User

Untitled

a guest
Aug 17th, 2017
64
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.09 KB | None | 0 0
  1. let rec fact x =
  2. if x = 0 then
  3. 1
  4. else
  5. x * fact (x-1)
  6. ;;
  7.  
  8. fact 6;;
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement