What is the output of the following code?
public class Main {
public static void main(String arg[]) {
int i;
for (i = 1; i = 12; i += 2) {
if (i == 8) {
System.out.println(i);
break;
}
}
}
}

Posted on by