Skip to content
Snippets Groups Projects
Commit 884530fc authored by DARWICH ALI's avatar DARWICH ALI
Browse files

tp2 logique

parent 8a1f1b66
Branches
No related merge requests found
File added
entr(et1).
sortie(et3).
existe(et1, a, et2).
existe(et2, b, et3).
existe(et3, a, et3).
reconnaître(L):- entr(E),reconnaîtreb(E,L).
reconnaîtreb(E,[]):- sortie(E) .
reconnaîtreb(E,[X|L]):-existe(E,X,E1), reconnaîtreb(E1 , L).
len([],0).
len([_|T],N):- len(T,X), N is X+1.
estdans([E|_],E).
estdans([_|T],X):- estdans(T , X).
\ No newline at end of file
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment