oddEven(X, RET) :- X > 0, V is mod(X,2), ANS is 'yes' := V =:= 0, ANS is 'no' := V =:= 1.
oddEven(5, ANS).
prog.pl:4:15: 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!