Create a gist now

Instantly share code, notes, and snippets.

Embed
What would you like to do?
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