1 2 3 4 5 6 | even(N) :- 0 is mod(N,2). odd(N) :- 1 is mod(N,2). |
CiBldmVuKE4pIDotICAwIGlzIG1vZChOLDIpLgogb2RkKE4pIDotICAxIGlzIG1vZChOLDIpLgoKCiA=
-
upload with new input
-
result: Success time: 0.02s memory: 68352 kB returned value: 0
odd(5).
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
even(4)
GNU Prolog 1.3.1 By Daniel Diaz Copyright (C) 1999-2009 Daniel Diaz uncaught exception: error(syntax_error('user_input:1 (char:8) . or operator expected after expression'),read_term/3)



