What is the output of the program?

public class temp
{
public static void main(String agrs[])
{
int loop;
for(loop=2; loop=10; loop++)
{
loop*=2;
if(loop12)
break;
}
System.out.println(loop);
}
}

Posted on by