how to stop repititions in rules in prolog
- by Pradeep
in my prolog rule
marriedcouple(X,Y) :-
parent((X,Z),bornin()),
parent((Y,Z),bornin()),
female(X),male(Y);
male(X),female(Y),
different(X,Y).
when a parent have two kids. the couple shows two times. how to stop this