LogiQuest
Back to Flow Control
9

What is the output of the following program?

public class Main {
    public static void main(String[] args) {
        for (int i = 0; i < 3; i++) {
            for (int j = 0; j < 3; j++) {
                if (j == 1) continue;
                System.out.print(i + "" + j + " ");
            }
        }
        System.out.println();
    }
}
Medium

Discussion (0)

  • No discussion yet. Ask a doubt or share a shortcut.

Log in to join the discussion.