Hello all,
I'm new to this prolog business, and it's giving me real grief!
This is the predicate I would like to write:
Given a number X, find all possible lists of three integers that add up to X, ie
addsTo(+X,-L).
example: X = 3.
i need to generate
[0,0,3]
[0,1,2]
[1,1,1]
I've written...