What is wrong in this code? It doesn't print out numbers from 1 to 50 inclusive i = 50 while i > 0 do print i i = i+ 1 end
while i > 0 do
i will Always be great than 0 you should make some change in this line
Or in this line
Okay! Guess I got it.
Thanks a lot for the help
the change is
i = 1 while i <= 50 do print i i += 1 end
This topic was automatically closed 7 days after the last reply. New replies are no longer allowed.