Java Square pattern Program-
* * * * * *
* * * * * *
* * * * * *
* * * * * *
* * * * * *
* * * * * *
class SquarePattern
{
public static void main(String[] args)
{
int i,j,k;
for(i=1; i<=6; i++)
{
for(j=1; j<=6; j++)
{
{
System.out.print("*");
}
System.out.println("");
}
}
}
}
Star tringle Pattern program in JAVA Logic One
* * * * * *
* * * * * *
* * * * * *
* * * * * *
* * * * * *
* * * * * *
class SquarePattern
{
public static void main(String[] args)
{
int i,j,k;
for(i=1; i<=6; i++)
{
for(j=1; j<=6; j++)
{
{
System.out.print("*");
}
System.out.println("");
}
}
}
}
Star tringle Pattern program in JAVA Logic One
No comments:
Post a Comment