Your main problem is that your "logic" is "outside" the "do while" loop.
You need the code within the "do while" loop, or in a "subroutine" that you call from the "do while" loop.
And you should just "break out" with a "period", since your present code would execute what follows anyway.
Or maybe, you meant to use a "while" loop. Main difference is you "prime" a "while" loop.
while - C# Reference | Microsoft Docs[
^]