Q:

Using Prolog Who are Pam's successors?

0

We have the following knowledge base In our family program:

parent(pam,bob).

parent(tom,bob).

parent(tom,liz).

parent(bob,ann).

parent(bob,pat).

parent(pat,jim).

All Answers

need an explanation for this answer? contact us directly to get an explanation for this answer

?-predecessor(pam,X).

Answer:

X=bob;

X=ann;

X=pat;

X=jim.

need an explanation for this answer? contact us directly to get an explanation for this answer

total answers (1)

Similar questions


need a help?


find thousands of online teachers now