Assignment # 12: IM PO RT AN T INS TR UC TIO

You might also like

Download as docx, pdf, or txt
Download as docx, pdf, or txt
You are on page 1of 1

Assignment # 12

IM
PO
RT
AN
T
INS
TR
UC
TIO

QUESTION: Encode following knowledge in Prolog and also write Prolog version of the given
queries;

“Asif to play tennis, while Umer and Fahad play football. Kashif regularly plays hockey. Tariq,
who is friend of Asif plays every sport which Asif plays. Moreover, all of these persons also play
cricket.

Queries

1. Who plays tennis ?


2. Which sports Tariq plays ?
3. Which game is played by which person ?

You might also like