Prolog Write Following Statement Prolog Clauses One Fact One Rule Weather Hot Weather Hot Q37223723

In Prolog,

Write the following statement as prolog clauses (one fact andone rule):

“weather is hot. if weather is hot, everyone like it.”

So, all following queries will return true:

likes (me, weather).

likes (jane, weather).

likes (john, weather).

% etc.


Answer


Leave a Comment

This site uses Akismet to reduce spam. Learn how your comment data is processed.