Home on the Range

Difficulty:
Elementary

Tags:
ranges

Instructions:
Fill in a range to complete the problem.

Code:
assert_equal (1..100).to_a[___].reduce(:+), 4494

Your Solution

Ruby 1.9.3

Back to Problems