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
Post a Comment