Given a char variable c that has already been declared , write some code that repeatedly reads a value from standard input into c until at last a ‘Y’ or ‘y’ or ‘N’ or ‘n’ has been entered.

Given a char  variable c that has already been declared , write some code that repeatedly reads a value from standard input into c until at last a ‘Y’ or ‘y’ or ‘N’ or ‘n’ has been entered.

LANGUAGE: C++

CHALLENGE:

Given a char variable c that has already been declared , write some code that repeatedly reads a value from standard input into c until at last a ‘Y’ or ‘y’ or ‘N’ or ‘n’ has been entered.

This content requires that you purchase additional access. The price is $2.99 or free for our Make Life Easier and 30 Days – Not Recurring members.

Purchase this Content ($2.99) Choose a Membership Level