HELP! Loops & Iterators #12 on Ruby


Hey Guys,

I'm on Loops & Iterators on Ruby and my code just isn't working and I don't know what i've done wrong?

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

**odds.each do |x|**
** x *= 2**
**** print "The answer** is #{x} \n"**


Use the .each method on the odds array to print out double the value of each item of the array. In other words, multiply each item by 2.

Make sure to use print rather than puts, so your output appears on one line.


For many lessons we are not free to improvise with embellished text. Just print the numbers, nothing else.

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


hey can you help me too