Hello,
Another basic question, thanks for the help on the last one. I wanted to
come up with the above described program and came up with this:
array.rb start
a = [1]
x = 0
while x < 99
a[(x+1)] = (a[x] + 1)
x = x + 1
end
p a
array.rb end
This worked fine, but is there a more elegant way of doing this? It
seems a
bit clumsy.
Brian