Jump to content

Decision tables: Difference between revisions

→‎{{header|Picat}}: Added {{out}}, added subsections.
(→‎{{header|Picat}}: Added {{out}}, added subsections.)
Line 1,807:
 
=={{header|Picat}}==
===Interactive version===
<lang Picat>import util.
%
Line 1,853 ⟶ 1,854:
end
end.
 
 
conditions(Conditions) =>
Line 1,871:
].</lang>
 
{{out}}
Sample run:
<pre>
Please answer the questions with YyNn.
Line 1,883:
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.
 
Line 1,908 ⟶ 1,909:
nl.</lang>
 
{{out}}
Output (truncated):
<pre>
p = [1]
495

edits

Cookies help us deliver our services. By using our services, you agree to our use of cookies.