Web : Discrete Addict: Fact, Rules, Predicate, and Variable in Prolog (part 2) - URL : http://discreteaddict.blogspot.com/2009/11/fact-rules-predicate-and-variable-in_17.html
www.kang-musa.co.cc
.

Fact, Rules, Predicate, and Variable in Prolog (part 2)

Step 1
Type the following program into a file and load it into prolog.


Click to See Larger

Step 2
Type this command,
male(Male),female(Female).
to display all possible couple of variables that had been declared.


Click to See Larger

Very Easy, right?

0 komentar:

Posting Komentar

 

Home - About Us - Profile - Tutorial - Literature - Relation