home *** CD-ROM | disk | FTP | other *** search
Prolog Source | 1988-06-21 | 347 b | 19 lines |
- /*
- Turbo Prolog 2.0 Chapter 3, Example Program 3
-
- Copyright (c) 1986, 88 by Borland International, Inc
-
- */
-
-
- predicates
- likes(symbol,symbol)
-
- clauses
- likes(ellen, reading).
- likes(john, computers).
- likes(john, badminton).
- likes(leonard, badminton).
- likes(eric, swimming).
- likes(eric, reading).
-