12. Try It Out


#1

odds = [1,3,5,7,9]
odds.each do |x|
x * 2
print x
end

What's wrong with this!


#2

You are not putting that 'x * 2' value back into x.

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

odds.each do |x|
x *= 2
print x
end


#3

thanks man it helped!