Question: Given the following code snippet, what will the program print to the console? (10pts) int i = 4; if(i*3>12) { System.out.println(A); i--; } else
Given the following code snippet, what will the program print to the console? (10pts) int i = 4; if(i*3>12) { System.out.println("A"); i--; } else if (i % 2 == e) { System.out.println("8"); i++; } else if(i { 5) System.out.println("C"); i += 2; if(i / 2 == 2) { System.out.println("D"); i -= 2; } else if (i*5> 20) { System.out.println("E"); i /- 3; } else { System.out.println("F"); i %= 12; } if(i < 100) { System.out.println("G"); i *= 3; } else { System.out.println("H"); i += 145; System.out.println(i);//Don't forget this one!
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
