read(X)even(X) :- print( 'even'), n1, fail)odd(X) :- print( 'odd'), n1, fail)
Standard input is empty
prog.pl:2:1: 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!