home *** CD-ROM | disk | FTP | other *** search
/ Liren Large Software Subsidy 9 / 09.iso / l / l210 / 1.ddi / EXAMPLES.ARC / CH03EX03.PRO < prev    next >
Encoding:
Prolog Source  |  1988-06-21  |  347 b   |  19 lines

  1. /*
  2.    Turbo Prolog 2.0 Chapter 3, Example Program 3
  3.    
  4.    Copyright (c) 1986, 88 by Borland International, Inc
  5.   
  6. */   
  7.  
  8.  
  9. predicates
  10.    likes(symbol,symbol)
  11.  
  12. clauses
  13.    likes(ellen, reading).
  14.    likes(john, computers).
  15.    likes(john, badminton).
  16.    likes(leonard, badminton). 
  17.    likes(eric, swimming).
  18.    likes(eric, reading).
  19.