Display The Number Of Characters In The Name Of Each Month
Join the DZone community and get the full member experience.
Join For Free
months = %w(January February March April May June July August September October November December)
months.each { |m| print m, " (", m.length, ")\n" }
Opinions expressed by DZone contributors are their own.
Comments