Lesson 14


Alright so I set the range from 1-50. IIRC, to make 50 inclusive it should use a '..' instead of '...' because that leaves us at 49. As far as counting up, I have the right iterator in the sense that I use += instead of -= that counts de-increments by 1.
I could define the method but this is just frustrating.

i = 1..50
while i > 0 do
print i
i += 1



This topic was automatically closed 7 days after the last reply. New replies are no longer allowed.