Given a string variable s that has already been declared, write some code that repeatedly reads a value from console input into s until at last a "Y" or "y" or "N" or "n" has been entered.

PHOTO EMBED

Fri Sep 22 2023 21:51:51 GMT+0000 (Coordinated Universal Time)

Saved by @David_Mix

s = "";
while (s != "Y" && s != "y" && s != "N" && s != "n")
  cin >> s;
content_copyCOPY