Ask Question
16 September, 19:04

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. 16 September, 19:32
    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 the answers seem to be not correct or there’s no answer. Try a smart search to find answers to similar questions.
Search for Other Answers