LEC :13 | JAVA
LEC:13
Break and Continue Keywords in JAVA
for(int i=1;i<6;i++)
{
if(i>3)
{System.out.println("the value of i is greater than 3 : "+i);
break;}
System.out.println("the value of i : "+i);
}
System.out.println("the end of for loop ");
Comments
Post a Comment