Created
March 10, 2016 23:44
-
-
Save pablq/400c3785d4dabc397977 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/* wow */ | |
factorial(0,1). | |
factorial(n,f) :- | |
n>0, | |
n1 is n-1, | |
factorial(n1,f1), | |
f is n * f1. |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment