fork download
  1. oddEven(X, RET) :-
  2. X > 0,
  3. V is mod(X,2),
  4. ANS is 'yes' := V =:= 0,
  5. ANS is 'no' := V =:= 1.
  6.  
  7.  
Compilation error #stdin compilation error #stdout 0s 0KB
stdin
oddEven(5, ANS).
compilation info
prog.pl:4:15: syntax error: . or operator expected after expression
	1 error(s)
compilation failed
stdout
Standard output is empty