Ask Question
27 January, 00:25

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);

+4
Answers (1)
  1. 27 January, 03:08
    0
    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
Know the Answer?
Not Sure About the Answer?
Get an answer to your question ✅ “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 = ...” in 📙 Mathematics if there is no answer or all answers are wrong, use a search bar and try to find the answer among similar questions.
Search for Other Answers