Computer Science, asked by gautamdakshana15, 1 year ago

1.What does the query noFriend(john) return for the following Prolog program?
noFriend(X) :- not(friend(X,Y)).
friend(dev,bob).
friend(bob,johny).
friend(dev,johny).

Answers

Answered by siddhartharao77
0

Given Query is:

noFriend(X):not(friend(X,Y)).

friend(dev,bob)

friend(bob,johny).

friend(dev,johny).

The given program Program returns "False".

Hope it helps!

Similar questions