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 Post: BlueJ Programs On Pattern
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 Post: BlueJ Programs On Pattern
No comments:
Post a Comment