SyntaxFix
Write A Post
Hire A Developer
Questions
Your condition is wrong. myChar != 'n' || myChar != 'N' will always be true.
myChar != 'n' || myChar != 'N'
Use myChar != 'n' && myChar != 'N' instead
myChar != 'n' && myChar != 'N'