I justed started prolog and wanted some help on doing the following:
Express the following relations and queries in Prolog:
niece(X,Y): X is a niece of Y.
aunt(X,Y): X is an aunt of Y.
relative(X,Y): X and Y are relatives.
Who are joe's children?
How many children does joe have?
Are joe and steph relatives?
Please advice?
thanks
Frank
Express the following relations and queries in Prolog:
niece(X,Y): X is a niece of Y.
aunt(X,Y): X is an aunt of Y.
relative(X,Y): X and Y are relatives.
Who are joe's children?
How many children does joe have?
Are joe and steph relatives?
Please advice?
thanks
Frank