مراااااحب
انا مطلوب مني مشروووع بالبرولوج...ففكرت في مشروع ع قدي.... :huh: :huh:
المهم...هذي الفكررره:
• John lives in the blue house in first street and study at Harvard university.
• David lives in the red house in first street and study at College of Computer.
• Edward lives in the Green house in first street and study at N.Y university.
• Michael lives in the Yellow house in Second street and study at N.Y university.
• Harry lives in the Violet house in Second street and study at N.Y university.
• John Neighbor David.
• Michael Friend Edward.
• John parent Harry.
• Edward teacher Harry.
وهذا الكوود:
person(X,Y,Z):-right(X,Y,Z). right(name,house,university). person(john,blue,harvard university), person(david,red,college of computer), person(edward,green,N.Y university), person(michael,yellow,N.Y university), person(harry,violet,N.Y university),
بس يطلع ايروووور ب السطر 3
وانا مدري اشبوووه
اتمنى المسااااعده :) :)
.
.
.
شكراااااااا