Decision tables: Difference between revisions

m
(add Ruby)
Line 423:
=={{header|J}}==
'''Solution''':<lang j>require'strings'
 
'RULE_NAMES RULES'=: |:':'&cut;._2 noun define
Printer does not print: Y Y Y Y N N N N
A red light is flashing: Y Y N N Y Y N N
Line 429 ⟶ 430:
)
 
'ACTION_NAMES ACTIONS'=: |:':'&cut;._2 noun define
Check the power cable: - - X - - - - -
Check the printer-computer cable: X - X - - - - -
6,962

edits