I need help with exercise 9


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?


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


Thanks :slight_smile:


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