Created
October 5, 2020 05:08
-
-
Save wulab/5fd919cbcef50a0ed1c6b0e2d6d23d13 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
activity(friday, 'september townhall'). | |
activity(saturday, 'learn prolog facts'). | |
activity(sunday, 'learn prolog rules'). | |
weekend(saturday). | |
weekend(sunday). | |
weekend_activity(A) :- | |
activity(D, A), | |
weekend(D). | |
answer :- | |
weekend_activity(X), | |
tab(2), write(X), nl, | |
fail. |
Author
wulab
commented
Oct 5, 2020
•
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment