Hex words: Difference between revisions

Content added Content deleted
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 {|hw| puts "%6s %8d %d" % hw}
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