- Apr 23, 2013
- 1
- 0
- 0
I 'm new to Prolog.
I create prolog programme as below
when type question in the prolog as this
?- apple(tom,liz).
as the answer I got false.but I thought it should be true because by this I thought I can assign the values..................
Can anybody explain what has happened why my expected result didn't get?
I create prolog programme as below
Code:
apple( liz, tom):-parent( tom, liz).
?- apple(tom,liz).
as the answer I got false.but I thought it should be true because by this I thought I can assign the values..................
Can anybody explain what has happened why my expected result didn't get?
