Can somebody help me with my code?


#1




Every single time I try to save and submit my code, I keep getting the error message, "Oops, try again. It looks like you didn't print out the numbers 1 to 50, inclusive.". Can somebody help me?


 i = 50
while i > 1 do
  print i
  i -= 1
end


#2

would suggest ascending order, not descending.


#3

I've tried inputting all different kinds of codes, but they are not working. Could someone give me the direct code?


#4

In a word, no. You have as much code as you need, and just need to rethink it according to the previous advice. How would one print the numbers from 1 to 50?


#5

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