What output will be displayed as a result of executing the following code? int x = 5, y = 20; x += 32; y /= 4; System.out.println("x = " + x + ", y = " + y);

Respuesta :

Answer: x = 37,y=5

Step-by-step explanation:

from the initial x is 5 and y is 20

but now the values are updated:

x+=32

x=x+32

x=5+32

x=37

so now x is 37

y/=4

y=y/4

y=20/4

y=5

so now y is 5

the out put will be:

x = 37,y=5