Advertisement
Benlahbib_Abdessamad

Untitled

Feb 9th, 2016
66
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.14 KB | None | 0 0
  1. entre(P,Q,_) :- P>Q , ! , fail.
  2. entre(P,_,P).
  3. entre(P,Q,R) :- P1 is P+1 , entre(P1,Q,R).
  4. pairs(A,B,C) :- entre(A,B,C) , C mod 2 =:= 0 .
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement