we have another task for this week..
first i will post my result..
here it is the question:
this is the result :
1. from that database we have to find animal that is : mammals, mammals that is carnivora, stripes mammals and reptile that is mane
..
first we have to put some formulas to find the animals catagories..
and after we put the formulas prolog will help us found them..
so..
- first, you type the database on a notepad.
- then you put this formula above the database :
- then save it as .pl
- after that open prolog and consult the notepad (pl)
- then type again the formula(one by one) on the number, ex number 1.mammals(B). then push enter & semicolon(;) until you see "no" with the next number.
for the couple, all procedure is the same..just try it! ^^
Tidak ada komentar:
Posting Komentar