Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- let rec fact x =
- if x = 0 then
- 1
- else
- x * fact (x-1)
- ;;
- fact 6;;
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement