Odd_even(X):- 0 is mod(X,2).
?- Odd_even(2).
prog.pl:1:9: 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!