I have a Program in R where i'm using do while loop in the following ... Are you absolutely sure the condition is saying what you think it is?
stackoverflow.com