Attention needed

Be aware that as guest, programs you create could be edited or deleted by anyone. Register

Food

Guest user
Edit
updated

Prolog files

facts
food(burger).
food(sandwich).
food(pizza).
lunch(sandwich).
dinner(pizza).
                            
rules
meal(X) :- food(X).
                            

Queries

Is pizza a food?
food(pizza).
Wich food is meal and lunch?
meal(X), lunch(X).
Is sandwich a dinner?
dinner(sandwich).

Results

Execute a query to get a result