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

I know it’s simple but I’ve never been good at this topic please help —— 1232÷14
Please help!!!! Write the equation of the circle in general form. Show all your work
what points does a legislature have to consider while formulating law?​
Determine the measure of angle BFE 1 ) 69 degrees 2 ) 112 degrees 3 ) 11 degrees 4 ) 224 degrees
When molten magma rises to the surface it cools ________, forming ________ igneous rocks. A. slowly, extrusive B. slowly, intrusive C. rapidly, intrusive D. rap
If a and b are two distinct primes, the ab2 has ___ positive divisors.
Solve the equation: 1-2 lnx = -4 ~ [?] X~ Round your answer to the nearest thousandth.
The graphs below have the same shapes. What is the equation for the red graph?
What is the asymptote of the following function: Y = e^x-x
Find the ratio of 18 inches to 2 yards B A. 3/4 B. 1/4 C. 1/5 D. 2/5