Question: Write the exact output: int x = 3452, y = 7634, z = 345; == if (x = y && x == 2) {

Write the exact output: int x = 3452, y = 7634, z = 345; == if (x = y && x == 2) { } System.out.println("All numbers are equal"); else if ((x == y) || (x y) || (x == z) || (z == y)) { System.out.println("Neither all are equal or different" } else { } System.out.println("All numbers are different"); Q3: What is the output of this fragmented code: for (int i = 5; i = 0; i == 2) { } System.out.println(i);
Step by Step Solution
There are 3 Steps involved in it
3 The fragmented code provided is a for loop in Java It initializes the variable i with a value of 5 ... View full answer
Get step-by-step solutions from verified subject matter experts
