Professional Documents
Culture Documents
Assignment # 12: IM PO RT AN T INS TR UC TIO
Assignment # 12: IM PO RT AN T INS TR UC TIO
Assignment # 12: IM PO RT AN T INS TR UC TIO
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