Skip to content

Commit

Permalink
add Prolog (#154)
Browse files Browse the repository at this point in the history
  • Loading branch information
Peterprombutr authored Oct 9, 2022
1 parent debb8f7 commit 5081958
Showing 1 changed file with 9 additions and 0 deletions.
9 changes: 9 additions & 0 deletions Prolog/peterprombutr.pl
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
cup(coffeeBeans).
pour_cup(water).

brew(coffee):-
cup(coffeeBeans),
pour_cup(water).

drink_coffee :- brew(coffee),
write('Here is your code').

0 comments on commit 5081958

Please sign in to comment.