Answer the question
In order to leave comments, you need to log in
While looping in Ruby. What's wrong?
I decided to learn Ruby. I came across an online book, but one example does not run correctly on my computer.
The while loop does not end when you type "while". Although it is clear from the logic that the cycle must end. The example was copied and pasted into the editor, so there should not be an error. I don't understand what is wrong. Please help me figure it out :)
www.shokhirev.com/mikhail/ruby/ltp/Chapter06.html
Answer the question
In order to leave comments, you need to log in
Apparently, the problem is with the Cyrillic alphabet, if you change it to the Latin alphabet, everything works, saved it in utf-8 under Windows.
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question