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

Which is a a characteristic of a strong acid ?
How is the surface area of a prism determined? a. perimeter of base x height c. sum of all lateral edges b. sum of all areas of faces d. base area x height
The population of a town increased from 5600 to 6300 people. What was the percent of increase
which line is it? help asap
hi will mark brainliest, 30 pts in your own words, describe what the pythagorean theorem is and why we use it.
Find the mode of this set of data
6x(x − 4) − 16x2 − (9x − 1)?A. -10x2 − 33x + 1B. 10x2 − 33x + 1C. -10x − 33x + 1D. -10x2 + 33x + 1
Help me ASAP I will mark you as the brainiest!
The surface temperature of four stars is shown in the table below. Surface Temperature Star Temperature (Degree Celsius) A 3,600 B 6,000 C 2,000 D 15,000 If one
How did the Mexican war influence Polk’s position in Oregon?