num(X).odd(X) :- mod(X,2).? - odd(X)
?- num(10)
prog.pl:1: warning: singleton variables [X] for num/1 prog.pl:3:3: syntax error: current or previous operator needs brackets 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!