Prolog Programming Examples
- family.pro, a bunch of facts and
rules about my family.
- courses.pro, a bunch of facts about
CS professors at Adelphi; note that courses are represented as
structures of the form
class(course_number,days,start_time,room)
which themselves appear inside facts of the form
teaching(professor,class)
- lists.pro, an example of list programming.
Adds up a list of numbers.
Last modified:
Stephen Bloch / sbloch@adelphi.edu