Advertisement
starbeamrainbowlabs

Lab5.Foods.pl

Oct 29th, 2015
367
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Prolog 0.19 KB | None | 0 0
  1. food(apple,fruit).
  2. food(tomato,fruit).
  3. food(lettuce,salad).
  4. food(beef,meat).
  5. food(cucumber,salad).
  6.  
  7. display_salad_food :- food(Food,salad),
  8.     write(Food), write(' is a salad'), nl, fail.
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement