Hex words: Difference between revisions
Content added Content deleted
(→{{header|Ruby}}: Add Ruby) |
m (→{{header|Ruby}}: variable name) |
||
Line 1,489: | Line 1,489: | ||
<syntaxhighlight lang="ruby" line>def report(a) |
<syntaxhighlight lang="ruby" line>def report(a) |
||
puts |
puts |
||
a.each {| |
a.each {|hexword| puts "%6s %8d %d" % hexword} |
||
puts "Total count of these words: #{a.size}" |
puts "Total count of these words: #{a.size}" |
||
end |
end |