Computer Science Archive: Questions from September 11, 2023
-
0 answers
-
public static void main (String[] args) { int x = 5; X = X* 2: } int y = 4; y = y + x; y=x+y; x = x + y; System.out.println("x = " + x); System.out.println("y="+y);
public static void main (String] args)\} \[ \begin{array}{l} \text { int } x=5 ; \\ x=x * 2 ; \\ \text { int } y=4 ; \\ y=y+x ; \\ y=x+y ; \\ x=x+y ; \end{array} \] System outprintin \( (" x="+x) \);1 answer