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

  1. /*
  2.    Turbo Prolog 2.0 Chapter 5, Example Program 15
  3.    
  4.    Copyright (c) 1986, 88 by Borland International, Inc
  5.    
  6. */
  7.  
  8. predicates
  9.    classify(integer, symbol)
  10.  
  11. clauses
  12.    classify(0, zero).
  13.    classify(X, negative) :- X < 0.
  14.    classify(X, positive) :- X > 0.