Menu

Printed 34 Wrong Int 5 Int J 6 6 Systemprint 1 J 6 Systemprint 2 Else Systemprint 3 J 6 Sy Q43902285

What is printed? (34 was wrong?)

int i = 5;int j = 6;if (i == 6) System.out.print(“1”); if (j == 6) System.out.print(“2”);else System.out.print(“3”);if (j == 6) System.out.print(“4”);

Expert Answer


Answer to What is printed? (34 was wrong?) int i = 5; int j = 6; if (i == 6) System.out.print(“1”); if (j == 6) System.out.print(“…

OR