Question: IN JAVA For the below program. Give the order of statement execution using the line numbers. Line 01: int x = 10; Line 02: int
IN JAVA
For the below program. Give the order of statement execution using the line numbers. Line 01: int x = 10; Line 02: int 15; Line 03: int z = 0; Line 04: if (x%2 != 0) Line 05: { Line 06: if (y%2 != 0) Line 07: { Line 08: z = y + 1; Line 09: } Line 10: else Line 11: { Line 12: z = y - 1; Line 13: } Line 14: } Line 15: else Line 16: { Line 17: z = x + y; Line 18: System.out.println(z); Line 19: } Line 20: System.out.println(z)
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
