In I put it in [0..4] i + 1 end
For the undefined method 0..4: Range (Noble Enterier)
Why not treat each number in the range as a single digit in the loop?
Instead, type:
for i in 0 .. 4
Otherwise you do not have any range, you have an array of 1 category.
Comments
Post a Comment