home *** CD-ROM | disk | FTP | other *** search
Prolog Source | 1990-03-26 | 472 b | 21 lines |
- /*
- Copyright (c) 1986, 90 by Prolog Development Center
- */
-
- predicates
- country(symbol)
- print_countries
-
- clauses
- country(england).
- country(france).
- country(germany).
- country(denmark).
-
- print_countries :- country(X),
- write(X), /* write the value of X */
- nl, /* start a new line */
- fail.
-
- print_countries.