odd(X):- 1 is mod(X,2).even(X):- 0 is mod(X,2).
odd(3). even(3). odd(4). even(4).
GNU Prolog 1.3.1 By Daniel Diaz Copyright (C) 1999-2009 Daniel Diaz yes no no yes
The brand new service which powers Ideone!
Widget for compiling and running the source code in a web browser!