Advertisement
alexarcan

lab1 AIF

Feb 25th, 2016
294
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Prolog 0.24 KB | None | 0 0
  1. father(ion,ana).
  2. father(ion,greg).
  3. father(ion,fil).
  4. father(ion,gin).
  5. father(zeno,maria).
  6. father(minu,dinu).
  7. father(minu,ghita).
  8. father(flavius,dana).
  9.  
  10. child(X,Y) :- father(Y,X).
  11. brother(X,Y) :- father(Z,X), father(Z,Y).
  12. nephew(X,Y) :-
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement