That's fine. What I said was you're confusing (I think) what needs to go in the do...while loop and what should go after it.
Run through the code on paper; when does the do...while loop terminate? What happens once it does? Is that what you want your program to do?