Sunday, February 24, 2013

Sample For Loop 5


public class sample {

    public static void main(String[] args) {
       
       
        for(int i=1; i<=5; i++)
        {
                       
            for(int j=i; j<=i+5; j++)
                System.out.print(j + " ");
                       
                System.out.println();
        }
       

    }

}

No comments:

Post a Comment