Archive for October, 2009

How to list all possible combination (consisting two elements) or two sets in PROLOG.

First, you make declaration like this,

then, consult it in PROLOG,

until like this,

type, “firstsets(X),secondsets(Y).”

then, enter

type, “;” until “no”

Leave a Comment