parent( mary, john ).parent( ann, mary ).female( mary).mother( x, y) :- parent( x, y), female( x).grandparent( x, y) :- parent( x, z), parent( z, y).?- grandparent (ann,john)
Standard input is empty
prog.pl:6:4: syntax error: . or operator expected after expression 1 error(s) compilation failed
Standard output is empty
The brand new service which powers Ideone!
Widget for compiling and running the source code in a web browser!