Display the number of characters in the name of each month
months = %w(January February March April May June July August September October November December) months.each { |m| print m, " (", m.length, ")\n" }
DZone Snippets > logankoester > months
12387 users tagging and storing useful source code snippets
Snippets is a public source code repository. Easily build up your personal collection of code snippets, categorize them with tags / keywords, and share them with the world
Logan Koester http://logankoester.com
months = %w(January February March April May June July August September October November December) months.each { |m| print m, " (", m.length, ")\n" }