Created
February 19, 2014 18:51
-
-
Save JeffCohen/9098912 to your computer and use it in GitHub Desktop.
Ruby Vitamin Check-Up
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# 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