I can't get ahead even though i think i'm right


#1


Replace this line with your code.


#2

Hi, you have to print out the even numbers starting with 18 counting down to 0 in one line.

I think it was intended to use loop do but you can also do it with a foor loop if you include 18 and 0.


#3

shall i began with loop do?


#4

loop do is cover in the prior lesson.

loop do
  # do something
  break if condition
end

#5


#6

still same error showing


#7

some1 plzz resolve it all u intelligent minds


#8

You are still not printing 18.


#9

Reset you'r code and start from scratch, that might help. Once you have done that try changing i = 20 to i = 19 to start out with.

EDIT:

There are (theoretically) multiple solutions, but you should follow the instructions otherwise you could find yourself lost. Changing i =20 to i = 19 Cccooouuulllddd work but I'm not sure, I used a different way and am experimenting with what I just said. Alternatively put 2 == 1 somewhere in the code, I think you can find it out!


#10

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