Question: exit a do while loop c#?
Answer: The break statement provides you with the opportunity to exit out of a while loop when an external condition is triggered. You will put the break statement within the block of code within your loop statement, normally after a conditional if statement. Statements in the loop after the break statement do not execute.