SyntaxFix
Write A Post
Hire A Developer
Questions
You need to change || to && so that both conditions must be true to enter the loop.
||
&&
while(myChar != 'n' && myChar != 'N')