Hi, I have a very simple prolog problem and I am not sure whats wrong. I have to evalute an integer and from this test will pick the right out come. Here is my prolog code.
rule(A,B,C,Z) :- A=<6, rule(one,Z).
rule(A,B,C,Z) :- A>6, rule(2,B,C,Z).
rule(2,B,C,Z) :- B=yes, rule(two,Z)...