next up previous
Next: Queries with Variables Up: CS206 Lecture 01 Formal Previous: From Functions to Relations

Querying a Logic Program

Now we can ask the Logic program interpreter queries like:

?- plus(2,3,6).
?- plus(1,4,3).
?- plus(1,1,2).
and it will correctly answer yes or no.



G. Sivakumar 2002-12-31