logic - Undefined procedure error in prolog -


i'm new in prolog , have unknown error ! error:

 error: sa/0: undefined procedure: {}/1  exception: (7) {s=abeer-> (parent(ahmad, abeer)->write('the father ahmad \n');write('no father !'));write('nothing \n')} ?  

this code:

male(ahmad). female(abeer). parent(ahmad,abeer).  sa:-     write('enter car: \n'),     read(fe),     {  fe = abeer     -> (  parent(ahmad,abeer)        -> write('the father ahmad \n')        ;  write('no father !')        )         ;  write('nothing \n')     }. 


Comments

Popular posts from this blog

jquery - How do you format the date used in the popover widget title of FullCalendar? -

asp.net mvc - SSO between MVCForum and Umbraco7 -

Python Tkinter keyboard using bind -