Guggy8727 Guggy8727
  • 03-12-2019
  • Computers and Technology
contestada

What is the output of the following C++ code? int x = 55; int y = 5; switch (x % 7) { case 0: case 1: y++; case 2: case 3: y = y + 2; case 4: break; case 5: case 6: y = y – 3; } cout << y << endl;

Respuesta :

thefcuyt
thefcuyt thefcuyt
  • 03-12-2019

Answer:

you get 2

Explanation:

Answer Link

Otras preguntas

look at the picture and plzzz help
-7-3 -4MSolve for M=2​
Need to know if I got the correct answer for #29. If it’s wrong can you help me solve it please and thank you.
Add or remove commas Luke peeked into the haunted house through the spooky,glass,window
Can someone plz help!!!
The lungs are _______. separated by the mediastinum divided into nine lobes connected by the mediastinum divided into seven lobes
Which of the following equations corresponds to the graph below
A middle school has 490 students. Mae surveys a random sample of 60 students and finds that 24 of them have pet dogs. How many students are likely to have pet d
Can you please walk me through how to simplify this? 3x^2 – 5x^2 +4x^2
Solve − 2 x − 10 y = 10