1 | odd(X) :- 1 is rem(X,2). |
-
upload with new input
-
result: Success time: 0.02s memory: 68352 kB returned value: 0
odd(13).
GNU Prolog 1.3.1 By Daniel Diaz Copyright (C) 1999-2009 Daniel Diaz yes
-
result: Success time: 0.02s memory: 68352 kB returned value: 0
odd(14).
GNU Prolog 1.3.1 By Daniel Diaz Copyright (C) 1999-2009 Daniel Diaz no
-
result: Success time: 0.02s memory: 68352 kB returned value: 0
odd(1)
GNU Prolog 1.3.1 By Daniel Diaz Copyright (C) 1999-2009 Daniel Diaz uncaught exception: error(syntax_error('user_input:1 (char:7) . or operator expected after expression'),read_term/3) -
result: Success time: 0.02s memory: 68352 kB returned value: 0
?- odd(1)
GNU Prolog 1.3.1 By Daniel Diaz Copyright (C) 1999-2009 Daniel Diaz uncaught exception: error(syntax_error('user_input:1 (char:4) . or operator expected after expression'),read_term/3)



