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
0
Answer:
H
Explanation:
Answered by
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
Social Sciences,
6 months ago
English,
6 months ago
Social Sciences,
1 year ago
Math,
1 year ago
English,
1 year ago