As you know, I'm trying out Ruby. While solving one of the exercise problems I felt the need for a do-while loop. Unfortunately ruby has no documented do-while loop. Thankfully, somebody has already asked this same question in stackoverflow : Is there a do-while loop in ruby?
Here is a demonstration of a do-while code in ruby:
Remember that using undocumented features is always ill-advised !!
Here is a demonstration of a do-while code in ruby:
Remember that using undocumented features is always ill-advised !!