Decision tables: Difference between revisions

Content deleted Content added
add Ruby
Rdm (talk | contribs)
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 - - - - -