What will be displayed after the following statements have been executed? int x = 15, y = 26, z = 32; x = x + 12; y = y/6; z -=
14; System.out.println (x = " + x + ", y = " + y + ", z = " +z);"
1 answer:
Answer:
Following are the output of the statements
x = 27, y = 4, z = 18.
Explanation:
Following is the description of the statements.
- Initially, the variable x is initialized with 15,y is initialized with 26 and z is initialized with 32
- The statement x=x+12 means adding the value of variable x by 12 and store in "x" variable so x=15+12=27
- The y = y/6; statement gives the result 4 because the "/" operator gives the quotient.So 26/6 gives 4.
- z -= 14; statement gives the result 18 because it subtracts the value of z by 14 and stores in the "z" variable.
- Finally the System.out.println () method print the value of "x","y" and "z" variable
You might be interested in
Answer:
A.
Explanation:
But all of us get tired
Answer: it’s network protocol
Explanation:
Open this occurence and open the series is the two options to choose from, from the dialog box that shows when attempting to modify the appointments
Reduce the speed of the CPU
Answer:
maybe overexposure???
Explanation: