Computer Science, asked by YashSingh7266, 1 year ago

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

Answers

Answered by adittyaa012345678910
0

Answer:

H

Explanation:

Answered by powtow810
0

Answer:

while ((s!="Y" && s!="y" && s!="N" && s!="n"))

{

cin >> s;

}

Explanation:

while the string s !=

!= meaning doesn't equal the values in the parenthesis it will prompt you the user to input one of the values

check out some brocode videos as he teaches well

Similar questions