factorial(0,1). factorial(A,B) :- A > 0, C is A-1, factorial(C,D), B is A*D. yes
?- factorial(10,What).
prog.pl:8:4: syntax error: . or operator expected after expression 1 error(s) compilation failed
Standard output is empty
The brand new service which powers Ideone!
Widget for compiling and running the source code in a web browser!