Advertisement
cardel

Ejemplo prolog II

Jun 28th, 2020
2,648
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Prolog 0.17 KB | None | 0 0
  1. %base del conocimiento
  2. p('juanito').
  3. d('juanito').
  4. e('juanito').
  5. f('juanito').
  6. g('juanito').
  7.  
  8. %Reglas
  9. c(X) :- p(X),d(X),e(X),f(X).
  10. forall(c(X)).
  11. h(X) :- c(X),g(X).
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement