Menu
Question Index
...

What will be the output of the following program?

class Continue
{
    public static void main(String S[])
    {
        for(int i = 0; i <= 3; i++)
        {
            if(i == 2)
                continue;

            System.out.println(i);
        }
    }
}


0
1
2
3
0
1
2
0
1
3
0
1

Doubts

Problems

Topic: Learn Arrays And Loops

Read this topic
Take test on this topic

0
Wrong
Score more than 2 points

© meritcampus 2019

All Rights Reserved.

Open In App