fork download
  1. Odd_even(X):- mod(X,2), write ('even number'), nl.
  2. Odd_even(X):- write ('odd number'), nl.
Compilation error #stdin compilation error #stdout 0s 0KB
stdin
?- Odd_even(5)
compilation info
prog.pl:1:9: syntax error: . or operator expected after expression
prog.pl:2:9: syntax error: . or operator expected after expression
	2 error(s)
compilation failed
stdout
Standard output is empty