Skip to content

Instantly share code, notes, and snippets.

@JeffCohen
Created February 19, 2014 18:51
Show Gist options
  • Save JeffCohen/9098912 to your computer and use it in GitHub Desktop.
Save JeffCohen/9098912 to your computer and use it in GitHub Desktop.
Ruby Vitamin Check-Up
# Ruby Vitamin Check-Up
#
# (Google for "ruby array")
building_ages = [15, 56, 71, 32, 42, 46, 63, 91, 102]
# 1. How old is the oldest building?
# 2. What's the average age of these buildings?
# 3. How many buildings are more than 30 years old?
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment