Let say I have a English expression that says:
Day is before 8pm and after 8am
If I wanted to express this in prolog I can do something like this:
day(X) :- X<=2000,X>=800.
2000 = 8pm
800 = 8am
But this wont work. Is there a better way to express the above English expression?
Aucun commentaire:
Enregistrer un commentaire