What’s the Output?
Determine the output of each of the following segments.
a. short x = 15000; short y = 15000; int z; for (int i = 0; i<30000; i + +) x+ + ; System.out. println(x); System.out.println(y + 30000); z = y + 30000; System.out. println(z);
b. int x = 3, y = 7; while (xc. for (int j = 0; j<5; j + +) { for (int k = j; k > 0 ; k--) System.out.println(k); System.out.println(j); }d. boolean flag = true; int k = 1; int j = 1024; while (flag) { System.out.println(k); do { System.out.println(k); k = 2*k; } while (k e. int m = 0, k = 0, j = 100; while (m
We need at least 10 more requests to produce the solution.
0 / 10 have requested this problem solution
The more requests, the faster the answer.