<Hakusa / gmail.com> wrote in message 
news:1179799925.678198.117120 / u30g2000hsc.googlegroups.com...
> >
>> because you don't actually increment it anywhere. Perhaps you want 
>> something like:
>>
>> x=5
>> y=0
>> x.times do
>>      (y += 1).times do
>>          puts "x = #{x} y = #{y}"
>>      end
>> end
>>
>> cheers,
>> mick
>
> You'd think I'd have gotten that. Oh well. There's one problem fixed.
> Thanks.

    Just so there are no misunderstandings, do you now understand why:

y + 1

    ...does not increment y?  Does this seem consistent with your experience 
in other programming languages?
    Thank you...