I am a novice in prolog programming, i use swi-prolog. Now I'm stucked by some math problems
as we know the predicate :A is 3+3.
works well,the answer is A=6
.
but if I want to find two digits (A and B) from 0~9 that a+b=6
6 is A+B
does't work. so I want to know if there is a easy way to do this? And what if I want to find 3 digits (A,B and C)from 0~9 that A+B+C=13 how to do this ?