SHARE
TWEET

Ex1

Juliocesarvc Dec 5th, 2019 (edited) 91 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. passaro('Marcelo').
  2. peixe('Silvio').
  3. minhoca('Ana').
  4. pessoa('Eu').
  5.  
  6. gosta(X,Y) :- passaro(X),minhoca(Y).
  7. gosta(X,Y) :- gato(X),peixe(Y).
  8. gosta(X,Y) :- gato(X),passaro(Y).
  9. gosta(X,Y) :- amigo(X,Y).
  10.  
  11. amigo('Eu','Chuck Norris').
  12.  
  13. gato('Chuck Norris').
  14. come('Chuck Norris',Y) :- gosta('Chuck Norris',Y), not(pessoa(Y)).
  15.  
  16. %come('Chuck Norris',X)
  17. %gosta(X,Y)
RAW Paste Data
We use cookies for various purposes including analytics. By continuing to use Pastebin, you agree to our use of cookies as described in the Cookies Policy. OK, I Understand
 
Top