Skip to content

Instantly share code, notes, and snippets.

@infinite-Joy
Created August 22, 2017 15:47
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save infinite-Joy/519857fed919fb76dc7a04ca1288acfb to your computer and use it in GitHub Desktop.
Save infinite-Joy/519857fed919fb76dc7a04ca1288acfb to your computer and use it in GitHub Desktop.
main :-
has(X,apples), % who has apples
has(Y,plums), % who has plums
write(X), % write the apple lovers
put(10), % new line
write(Y), % write the plum lovers
nl, halt. % new line and halt
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment