Question: 2.2 (6 points) The code given below should print this output: -10 / 3.0 is -3.33 0 is even 2 is even However, the code
2.2 (6 points) The code given below should print this output: -10 / 3.0 is -3.33 0 is even 2 is even However, the code has 6 errors that prevent it from running correctly. Line 3 has one error but requires two fixes. Identify the error on each line and the way to fix it. Line 1 DOUBLE D = -10; Line 2 int z = 3.0; Line 3 System.out.println("-10/3 is %.2f " + d/2); Line 4 for (int i = 0,1
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
