/ Published in: Prolog
Expand |
Embed | Plain Text
Copy this code and paste it in your HTML
output(X,Y) :- my_output(X,Y)!. my_output(X,Y) :- my_output_(X,Y); my_output_(X,Y) :- my_output__(X,Y); my_output__(X,Y) :- my_output___(X,Y); my_output___(X,Y) :- write([X | [is | [Y | []]]]), my_________(). my_________() :- my________(). my________() :- my_______(). my_______() :- my______(). my______() :- my_____(). my_____() :- my____(). my____() :- my___(). my___() :- my__(). my__() :- my_(). my_() :- my(). my() :- !.