Thanks to visit codestin.com
Credit goes to www.scribd.com

0% found this document useful (0 votes)
18 views1 page

Prolog Exercise

The Prolog knowledge base includes the following statements: John enjoys all types of food, with apples and vegetables classified as food. It defines food as anything that is eaten and not killed, and notes that Anil eats peanuts and is still alive. Additionally, it states that Harry consumes everything that Anil eats.

Uploaded by

n02019697m
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as TXT, PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
18 views1 page

Prolog Exercise

The Prolog knowledge base includes the following statements: John enjoys all types of food, with apples and vegetables classified as food. It defines food as anything that is eaten and not killed, and notes that Anil eats peanuts and is still alive. Additionally, it states that Harry consumes everything that Anil eats.

Uploaded by

n02019697m
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as TXT, PDF, TXT or read online on Scribd
You are on page 1/ 1

Create the Knowledge base equivalent to the statements as below in Prolog.

1. John likes all kind of food.

2. Apple and vegetable are food

3. Anything anyone eats and not killed is food.

4. Anil eats peanuts and still alive

5. Harry eats everything that Anil eats.

You might also like