Monday, 10 November 2014

Pattern in blue j 1

BLUE J Program for the pattern - 1

1
12
123
1234
12345

 PROGRAM BELOW

public class pattern1 {
    public static void main( String args[])
{
        for(int i=1;i<=5;i++)
{

         for(int j=1;j<=i;j++){
                System.out.print(j);
            }
            System.out.println();
        }
    }
}

No comments:

Post a Comment