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...
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.