How to print a write value given prolog predicate retuns true?

前端 未结 0 1912
陌清茗
陌清茗 2021-02-05 22:56

How can I print a statement if a given prolog predicate returns true or false.

statement(X,Y) = true -> write("The statement is true").
相关标签:
回答
  • 消灭零回复
提交回复
热议问题