Step by step learning
What will be the output of the program?
class Example { public static void main(String[] args) { for (int i = 0; i < 4; i += 2) { System.out.print(i + " "); } System.out.println(i); } }
0 2 4
Compilation error.
0 2 2
0 1 2 3 3
Please log in or register to have a possibility to add comment.
Please log in or register to have a possibility to add comment.