Initial commit

main
kirbylife 2023-10-28 00:18:41 -06:00
commit d323639a18
1 changed files with 5 additions and 0 deletions

5
basic_sum/sum.pl 100644
View File

@ -0,0 +1,5 @@
% Define the rule to sum 2 numbers
sum(X, Y, Z) :- Z is X + Y.
% Define the rule to know if a number is even.
is_even(X) :- 0 is X mod 2.