How to validate if a user entered "Y" or "N" as an answer and if not, notify the user to enter again in C++?

3 answers 3