X is 1 :- C rem 2 =/= 0.X is 0 :- C rem 2 =:= 0.write('even') :- X is 1.write('odd'):- X is 0.
?- C is 5.
prog.pl:1:19: syntax error: . or operator expected after expression prog.pl:2: fatal error: redefining built-in predicate (is)/2 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!