Created
December 22, 2018 16:33
-
-
Save DonaldKellett/da31a44102e2c51102776014f6e87867 to your computer and use it in GitHub Desktop.
Learn Prolog Now! - Chapter 5 - Exercise 5.2 - Increment and Sum
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
increment(X, Y) :- Y is X + 1. | |
sum(X, Y, Z) :- Z is X + Y. |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment