LEC :13 | JAVA

        

LEC:13

Break and Continue Keywords in JAVA


  
    

Source Code:

        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

Popular posts from this blog

RunwayWithCode

web development Lectures

C++ Lectures