Why does it say that the array isn't being multiplied?


odds = [1,3,5,7,9]

odds.each do |x|
x = x*2
print "#{x} "


Try this x *= 2, worked to me!


It' not working for me. Neither of your suggestions helped


You're missing The " "


You have a space after your quotation mark after print "#{x}"


It worked for me after I copied and pasted the code, and then took out the space in print "#{x} ".
Thanks! Unfortunately, however, I still have a very loose grasp on these iterators and Ruby in general. Any good tutors out there than are free? :smiley:


it has to be "odd" not odds that is why it is giving you such error.Thanks