-Facts and Rules Exercise-
Part 1
In this basic exercise, i will teach you a very simple prolog.
I give this exercise 'Pasangan Presiden RI' as name of example.
First of all...
Open your notepad and write like this:
Okay, save this notepad and change format with .pl
Next, Open your SWI-Prolog and consult presiden-wakil.pl
Until this step, you will know what you've writen in notepad is correct or false..
Write: pasangan(gusdur,megawati). it means that pasangannya gusdur adalah megawati
what's the answer?
yes or no?
Let's see....
The answer is YES!
so, your writen is correct..
okay...
let's continue this exercise..
interesting?
Then, you can do it by yourself..
Okay, it's enough for this exercise..
We will learn prolog tutorial part 2 next time...
To be continue.....






0 komentar:
Posting Komentar