I need help with exercise 9


#1

I don't know why, but no matter what code I input, I keep getting the same error message: Oops, try again. It looks like your loop doesn't print out the numbers 18 to 0. Can someone copy and paste the correct code I need?


#2

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


#3

Thanks :slight_smile:


#4

This topic was automatically closed 7 days after the last reply. New replies are no longer allowed.