even(N):- A is mod(N,2), A = 0.odd(N):- A is mod(N,2), A = 1.
9
GNU Prolog 1.3.1 By Daniel Diaz Copyright (C) 1999-2009 Daniel Diaz uncaught exception: error(syntax_error('user_input:1 (char:2) . or operator expected after expression'),read_term/3)
The brand new service which powers Ideone!
Widget for compiling and running the source code in a web browser!