Decision tables: Difference between revisions
Content added Content deleted
(→{{header|Picat}}: Added {{out}}, added subsections.) |
|||
Line 1,807: | Line 1,807: | ||
=={{header|Picat}}== |
=={{header|Picat}}== |
||
===Interactive version=== |
|||
<lang Picat>import util. |
<lang Picat>import util. |
||
% |
% |
||
Line 1,853: | Line 1,854: | ||
end |
end |
||
end. |
end. |
||
conditions(Conditions) => |
conditions(Conditions) => |
||
Line 1,871: | Line 1,871: | ||
].</lang> |
].</lang> |
||
{{out}} |
|||
Sample run: |
|||
<pre> |
<pre> |
||
Please answer the questions with YyNn. |
Please answer the questions with YyNn. |
||
Line 1,883: | Line 1,883: | ||
Check for paper jam</pre> |
Check for paper jam</pre> |
||
===All possible answers/combinations=== |
|||
For debugging purposes it it's nice to be able to print all the possible combinations of answers/solutions. |
For debugging purposes it it's nice to be able to print all the possible combinations of answers/solutions. |
||
Line 1,908: | Line 1,909: | ||
nl.</lang> |
nl.</lang> |
||
{{out}} |
|||
(truncated) |
|||
<pre> |
<pre> |
||
p = [1] |
p = [1] |