Enter the result

Report a typo

What does this code print?

int n = 0;
System.out.print(++n);
System.out.print(n++);
System.out.print(n++);

Enter the result.
Keep in mind that all numbers are printed on the same line.

Enter a number
___

Create a free account to access the full topic