Correct an error in the program output grammer.
Emulate do-while loop from Ruby source.