Crazy Prolog Code


/ Published in: Prolog
Save to your folder(s)



Copy this code and paste it in your HTML
  1. output(X,Y) :- my_output(X,Y)!.
  2.  
  3. my_output(X,Y) :- my_output_(X,Y);
  4. my_output_(X,Y) :- my_output__(X,Y);
  5. my_output__(X,Y) :- my_output___(X,Y);
  6. my_output___(X,Y) :- write([X | [is | [Y | []]]]), my_________().
  7. my_________() :- my________().
  8. my________() :- my_______().
  9. my_______() :- my______().
  10. my______() :- my_____().
  11. my_____() :- my____().
  12. my____() :- my___().
  13. my___() :- my__().
  14. my__() :- my_().
  15. my_() :- my().
  16. my() :- !.

Report this snippet


Comments

RSS Icon Subscribe to comments

You need to login to post a comment.