Ask Question
22 May, 05:05

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

+2
Answers (1)
  1. 22 May, 07:10
    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?
Find 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 you're in doubt about the correctness of the answers or there's no answer, then try to use the smart search and find answers to the similar questions.
Search for Other Answers