Simple prolog query!!

Associate
Joined
6 Mar 2009
Posts
495
Im quite new to prolog and im stuck on what seems like a simple query. Heres whats in the database.

price(coffee,105).
price(tea,90).
price(cookie,105).
price(scone,95).
price(panini,225).
price(wrap,260).

drink(tea).
drink(coffee).

I want to write a query to answer as follows. What item that is not a drink costs 105 pence?? I cant figure out the NOT part.

Thanks
 
Back
Top Bottom