This function is part of a bigger program. I am having trouble because everything I write after a do while loop will not execute. The return statement satisfies the compiler but it doesn't actually execute. It's designed to jump to another function. Any help on why the code after the do while loop won't execute?
You do continue the loop as long as YorN is not 1 or YorN is not 2.
Take value that is not 1 or 2. Condition is obviously true.
Take 1. YorN is not 2 and thus condition is true.
Take 2. YorN is not 1 and thus condition is true.
Boolean OR is true if at least on side is true.
Boolean AND is true only when both sides are true.