kingdrex8418 kingdrex8418
  • 15-09-2022
  • Computers and Technology
contestada

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.

Respuesta :

andrew1392410
andrew1392410 andrew1392410
  • 15-09-2022

Answer:

s = "";

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

{

   cin >> s;

}

Answer Link

Otras preguntas

NEED HELP Two atoms with an electronegativity difference of 2.1, will form a bond that is: ionic, because electrons are shared. ionic, because electrons are tr
The main energy resource used by industrialized countries is _____.
temperature in alaksa​
In act 2, scene 5, the nurse shares romeo's plan to do what?
Help I really need it.
which of the following is a common myth associated with fitness?​
which georgraphic region made up much of the ottoman empire ?
Which is NOT a key feature of the Early American Literary Period? Occurred after the Revolutionary War Native American authors mostly an oral tradition literary
What countries have the unitary system
Find y if y = -6x + 84