Next!


#1

What do I do here?

i = 20
loop do
  i -= 1
  next if i % 2 == 0
  print "#{i}"
  break if i <= 0
end

Please answer. Thank you!


#2

your code next if i%2==0, means if i divide 2, the remainder is 0,print i out. but every odd divide 2 remains 0, so you do opposite the text wants you do.
try to correct it by next if i%2 !=0 or i%2==1.