Monday, December 17, 2012

Pattern Using BlueJ Program

Here is a pattern which will be printed using BlueJ.


79
579
3579
13579

class SChak
{
 int i,j,n,n1=7;
 public void show()
 {
      for(i=0;i< 4;i++)
      {
       n=n1;
           for(j=0;j< =i+1;j++)
           {
                System.out.print(n);
                n=n+2;
            }
           n1=n1-2;
            System.out.println();
            }
    }
}


Related PostBlueJ Programs On Pattern

No comments:

Post a Comment

Subscribe via email

Enter your email address:

Delivered by FeedBurner