Why is this not loading?


#1

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

When i click run, It loads for a while, then stops. it doesnt give me any error message.


#2

Did you mean to write,

next if i % 2 != 0

?


#3

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