Subversion Repositories programming

Rev

Details | Last modification | View Log | RSS feed

Rev Author Line No. Line
107 ira 1
mother(charles,elizabeth).
2
father(charles,phillip).
3
mother(andrew,elizabeth).
4
father(andrew,phillip).
5
mother(edward,elizabeth).
6
father(edward,phillip).
7
mother(william,diana).
8
father(william,charles).
9
mother(harry,diana).
10
father(harry,charles).
11
mother(elizabeth,elizabeth_tqm).
12
father(elizabeth,george).
13
 
14
grandfather(X,Y) :- father(X,Z),father(Z,Y).
15
grandfather(X,Y) :- mother(X,Z),father(Z,Y).
16