1
1 2
1 2 3
1 2 3 4
1 2 3 4 5
1 2 3 4 5 6
1 2 3 4 5 6 7
1 2 3 4 5 6 7 8
1 2 3 4 5 6 7 8 9
CODE-
Class Sqeuence
{
Public static void main(String args[])
{
// Loop for No of Rows Print
for (int i=1;i<10; i++)
{
// Loop for Sequence Printing
for (int j=1; j<=i;j++)
{
System.out.print(j +" ");
}
System.out.println();
}
}
}
Class Sqeuence
{
Public static void main(String args[])
{
// Loop for No of Rows Print
for (int i=1;i<10; i++)
{
// Loop for Sequence Printing
for (int j=1; j<=i;j++)
{
System.out.print(j +" ");
}
System.out.println();
}
}
}
{
Public static void main(String args[])
{
// Loop for No of Rows Print
for (int i=1;i<10; i++)
{
// Loop for Sequence Printing
for (int j=1; j<=i;j++)
{
System.out.print(j +" ");
}
System.out.println();
}
}
}
1
12
123
1234
12345
123456
1234567
12345678
123456789
CODE-
Class Sqeuence
{
Public static void main(String args[])
{
// Loop for No of Rows Print
for (int i=1;i<10; i++)
{
// Loop for Sequence Printing
for (int j=1; j<=i;j++)
{
System.out.print(j);
}
System.out.println();
}
}
}
Class Sqeuence
{
Public static void main(String args[])
{
// Loop for No of Rows Print
for (int i=1;i<10; i++)
{
// Loop for Sequence Printing
for (int j=1; j<=i;j++)
{
System.out.print(j);
}
System.out.println();
}
}
}
{
Public static void main(String args[])
{
// Loop for No of Rows Print
for (int i=1;i<10; i++)
{
// Loop for Sequence Printing
for (int j=1; j<=i;j++)
{
System.out.print(j);
}
System.out.println();
}
}
}
1
2 2
3 3 3
4 4 4 4
5 5 5 5 5
6 6 6 6 6 6
7 7 7 7 7 7 7
8 8 8 8 8 8 8 8
9 9 9 9 9 9 9 9 9
CODE-
Class Sqeuence
{
Public static void main(String args[])
{
// Loop for No of Rows Print
for (int i=1;i<10; i++)
{
// Loop for Sequence Printing
for (int j=1; j<=i;j++)
{
System.out.print(i);
}
System.out.println();
}
}
}
JAVA Sequence Pattern Program-
* * * * *
* * * *
* * *
* *
*
Class Sqeuence
{
Public static void main(String args[])
{
// Loop for No of Rows Print
for (int i=0;i<4; i++)
{
// Loop for No of * Print
for (int j=i; j<=5;j++)
{
System.out.print("* ");
}
// Loop for Sequence Printing
for (int j=1; j<=i;j++)
{
System.out.print(" ");
}
System.out.println();
}
}
}
JAVA Sequence Pattern Program-
1 * * *
2 3 * *
4 5 6 *
7 8 9 10
Class Sqeuence
{
Public static void main(String args[])
{
int dizsweb=1;
// Loop for No of Rows Print
for (int i=0;i<4; i++)
{
// Loop for No of * Print
for (int j=i; j<4;j++)
{
System.out.print("* ");
}
// Loop for Sequence Printing
for (int j=1; j<=i;j++)
{
System.out.print(dizsweb+" ");
dizsweb++;
}
System.out.println();
}
}
}
JAVA Sequence Pattern Program-
1
2 3
4 5 6
7 8 9 10
Class Sqeuence
{
Public static void main(String args[])
{
int dizsweb=1;
for (int i=0;i<4; i++)
{
for (int j=1; j<=i;j++)
{
System.out.print(dizsweb+" ");
dizsweb++;
}
System.out.println();
}
}
}
Java Triangle pattern Program- Logic One
*
* *
* * *
* * * *
* * * * *
* * * * * *
Class Tringle1
{
Public static void main(String args[])
{
for (int i=7;i>0; i++)
{
for (int j=1;j<=8-i;j++)
{
System.out.print("* ");
}
System.out.println();
}
}
}
Java Square pattern Program- Logic One
*
* *
* * *
* * * *
* * * * *
* * * * * *
Class Tringle1
{
Public static void main(String args[])
{
for (int i=1;i<=6; i++)
{
for (int j=1;j<=i;j++)
{
System.out.print("* ");
}
System.out.println();
}
}
}
Java Triangle pattern Program- Logic SIXTH
*
* *
* * *
* * * *
* * * * *
* * * * * *
Class Tringle3
{
Public static void main(String args[])
{
for (int i=0;i<7; i++)
{
for (int j=i;j>=1;j--)
{
System.out.print("* ");
}
System.out.println();
}
}
}
Java Square pattern Program- Logic SEVEN
*
* *
* * *
* * * *
* * * * *
* * * * * *
Class Tringle3
{
Public static void main(String args[])
{
for (int i=7;i>1; i--)
{
for (int j=1;j>=8-i;j--)
{
System.out.print("* ");
}
System.out.println();
}
}
}
Java Tringle pattern Program- Logic SIXTH
*
* *
* * *
* * * *
* * * * *
* * * * * *
Class Tringle3
{
Public static void main(String args[])
{
for (int i=0;i<7; i++)
{
for (int j=i;j>=1;j--)
{
System.out.print("* ");
}
System.out.println();
}
}
}
Java Square pattern Program- Logic FIVE
*
* *
* * *
* * * *
* * * * *
* * * * * *
Class Tringle3
{
Public static void main(String args[])
{
for (int i=0;i<6; i++)
{
for (int j=i;j>=1;j--)
{
System.out.print("* ");
}
System.out.println();
}
}
}
Java Square pattern Program- Logic Four
*
* *
* * *
* * * *
* * * * *
* * * * * *
Class Tringle3
{
Public static void main(String args[])
{
for (int i=1;i<7; i++)
{
for (int j=i;j>0;j--)
{
System.out.print("* ");
}
System.out.println();
}
}
}
Java Square pattern Program- Logic Three
*
* *
* * *
* * * *
* * * * *
* * * * * *
Class Tringle3
{
Public static void main(String args[])
{
for (int i=1;i<7; i++)
{
for (int j=1;j<i+1;j++)
{
System.out.print("* ");
}
System.out.println();
}
}
}
Java Square pattern Program- Logic One
*
* *
* * *
* * * *
* * * * *
* * * * * *
Class Tringle1
{
Public static void main(String args[])
{
for (int i=1;i<=6; i++)
{
for (int j=1;j<=i;j++)
{
System.out.print("* ");
}
System.out.println();
}
}
}
Java Square pattern Program- Logic Three
*
* *
* * *
* * * *
* * * * *
* * * * * *
Class Tringle3
{
Public static void main(String args[])
{
for (int i=1;i<7; i++)
{
for (int j=1;j<i+1;j++)
{
System.out.print("* ");
}
System.out.println();
}
}
}
Java Square pattern Program- Logic One
*
* *
* * *
* * * *
* * * * *
* * * * * *
Class Tringle1
{
Public static void main(String args[])
{
for (int i=1;i<=6; i++)
{
for (int j=1;j<=i;j++)
{
System.out.print("* ");
}
System.out.println();
}
}
}
Java Square pattern Program- Logic Four
*
* *
* * *
* * * *
* * * * *
* * * * * *
Class Tringle3
{
Public static void main(String args[])
{
for (int i=1;i<7; i++)
{
for (int j=i;j>0;j--)
{
System.out.print("* ");
}
System.out.println();
}
}
}
Java Square pattern Program- Logic Three
*
* *
* * *
* * * *
* * * * *
* * * * * *
Class Tringle3
{
Public static void main(String args[])
{
for (int i=1;i<7; i++)
{
for (int j=1;j<i+1;j++)
{
System.out.print("* ");
}
System.out.println();
}
}
}
Class Sqeuence
{
Public static void main(String args[])
{
// Loop for No of Rows Print
for (int i=1;i<10; i++)
{
// Loop for Sequence Printing
for (int j=1; j<=i;j++)
{
System.out.print(i);
}
System.out.println();
}
}
}
JAVA Sequence Pattern Program-
* * * * *
* * * *
* * *
* *
*
Class Sqeuence
{
Public static void main(String args[])
{
// Loop for No of Rows Print
for (int i=0;i<4; i++)
{
// Loop for No of * Print
for (int j=i; j<=5;j++)
{
System.out.print("* ");
}
// Loop for Sequence Printing
for (int j=1; j<=i;j++)
{
System.out.print(" ");
}
System.out.println();
}
}
}
JAVA Sequence Pattern Program-
1 * * *
2 3 * *
4 5 6 *
7 8 9 10
Class Sqeuence
{
Public static void main(String args[])
{
int dizsweb=1;
// Loop for No of Rows Print
for (int i=0;i<4; i++)
{
// Loop for No of * Print
for (int j=i; j<4;j++)
{
System.out.print("* ");
}
// Loop for Sequence Printing
for (int j=1; j<=i;j++)
{
System.out.print(dizsweb+" ");
dizsweb++;
}
System.out.println();
}
}
}
JAVA Sequence Pattern Program-
1
2 3
4 5 6
7 8 9 10
Class Sqeuence
{
Public static void main(String args[])
{
int dizsweb=1;
for (int i=0;i<4; i++)
{
for (int j=1; j<=i;j++)
{
System.out.print(dizsweb+" ");
dizsweb++;
}
System.out.println();
}
}
}
Java Triangle pattern Program- Logic One
*
* *
* * *
* * * *
* * * * *
* * * * * *
Class Tringle1
{
Public static void main(String args[])
{
for (int i=7;i>0; i++)
{
for (int j=1;j<=8-i;j++)
{
System.out.print("* ");
}
System.out.println();
}
}
}
Java Square pattern Program- Logic One
*
* *
* * *
* * * *
* * * * *
* * * * * *
Class Tringle1
{
Public static void main(String args[])
{
for (int i=1;i<=6; i++)
{
for (int j=1;j<=i;j++)
{
System.out.print("* ");
}
System.out.println();
}
}
}
Java Triangle pattern Program- Logic SIXTH
*
* *
* * *
* * * *
* * * * *
* * * * * *
Class Tringle3
{
Public static void main(String args[])
{
for (int i=0;i<7; i++)
{
for (int j=i;j>=1;j--)
{
System.out.print("* ");
}
System.out.println();
}
}
}
Java Square pattern Program- Logic SEVEN
*
* *
* * *
* * * *
* * * * *
* * * * * *
Class Tringle3
{
Public static void main(String args[])
{
for (int i=7;i>1; i--)
{
for (int j=1;j>=8-i;j--)
{
System.out.print("* ");
}
System.out.println();
}
}
}
Java Tringle pattern Program- Logic SIXTH
*
* *
* * *
* * * *
* * * * *
* * * * * *
Class Tringle3
{
Public static void main(String args[])
{
for (int i=0;i<7; i++)
{
for (int j=i;j>=1;j--)
{
System.out.print("* ");
}
System.out.println();
}
}
}
Java Square pattern Program- Logic FIVE
*
* *
* * *
* * * *
* * * * *
* * * * * *
Class Tringle3
{
Public static void main(String args[])
{
for (int i=0;i<6; i++)
{
for (int j=i;j>=1;j--)
{
System.out.print("* ");
}
System.out.println();
}
}
}
Java Square pattern Program- Logic Four
*
* *
* * *
* * * *
* * * * *
* * * * * *
Class Tringle3
{
Public static void main(String args[])
{
for (int i=1;i<7; i++)
{
for (int j=i;j>0;j--)
{
System.out.print("* ");
}
System.out.println();
}
}
}
Java Square pattern Program- Logic Three
*
* *
* * *
* * * *
* * * * *
* * * * * *
Class Tringle3
{
Public static void main(String args[])
{
for (int i=1;i<7; i++)
{
for (int j=1;j<i+1;j++)
{
System.out.print("* ");
}
System.out.println();
}
}
}
Java Square pattern Program- Logic One
*
* *
* * *
* * * *
* * * * *
* * * * * *
Class Tringle1
{
Public static void main(String args[])
{
for (int i=1;i<=6; i++)
{
for (int j=1;j<=i;j++)
{
System.out.print("* ");
}
System.out.println();
}
}
}
Java Square pattern Program- Logic Three
*
* *
* * *
* * * *
* * * * *
* * * * * *
Class Tringle3
{
Public static void main(String args[])
{
for (int i=1;i<7; i++)
{
for (int j=1;j<i+1;j++)
{
System.out.print("* ");
}
System.out.println();
}
}
}
Java Square pattern Program- Logic One
*
* *
* * *
* * * *
* * * * *
* * * * * *
Class Tringle1
{
Public static void main(String args[])
{
for (int i=1;i<=6; i++)
{
for (int j=1;j<=i;j++)
{
System.out.print("* ");
}
System.out.println();
}
}
}
Java Square pattern Program- Logic Four
*
* *
* * *
* * * *
* * * * *
* * * * * *
Class Tringle3
{
Public static void main(String args[])
{
for (int i=1;i<7; i++)
{
for (int j=i;j>0;j--)
{
System.out.print("* ");
}
System.out.println();
}
}
}
Java Square pattern Program- Logic Three
*
* *
* * *
* * * *
* * * * *
* * * * * *
Class Tringle3
{
Public static void main(String args[])
{
for (int i=1;i<7; i++)
{
for (int j=1;j<i+1;j++)
{
System.out.print("* ");
}
System.out.println();
}
}
}
{
Public static void main(String args[])
{
// Loop for No of Rows Print
for (int i=1;i<10; i++)
{
// Loop for Sequence Printing
for (int j=1; j<=i;j++)
{
System.out.print(i);
}
System.out.println();
}
}
}
JAVA Sequence Pattern Program-
* * * * *
* * * *
* * *
* *
*
Class Sqeuence
{
Public static void main(String args[])
{
// Loop for No of Rows Print
for (int i=0;i<4; i++)
{
// Loop for No of * Print
for (int j=i; j<=5;j++)
{
System.out.print("* ");
}
// Loop for Sequence Printing
for (int j=1; j<=i;j++)
{
System.out.print(" ");
}
System.out.println();
}
}
}
JAVA Sequence Pattern Program-
1 * * *
2 3 * *
4 5 6 *
7 8 9 10
Class Sqeuence
{
Public static void main(String args[])
{
int dizsweb=1;
// Loop for No of Rows Print
for (int i=0;i<4; i++)
{
// Loop for No of * Print
for (int j=i; j<4;j++)
{
System.out.print("* ");
}
// Loop for Sequence Printing
for (int j=1; j<=i;j++)
{
System.out.print(dizsweb+" ");
dizsweb++;
}
System.out.println();
}
}
}
JAVA Sequence Pattern Program-
1
2 3
4 5 6
7 8 9 10
Class Sqeuence
{
Public static void main(String args[])
{
int dizsweb=1;
for (int i=0;i<4; i++)
{
for (int j=1; j<=i;j++)
{
System.out.print(dizsweb+" ");
dizsweb++;
}
System.out.println();
}
}
}
Java Triangle pattern Program- Logic One
*
* *
* * *
* * * *
* * * * *
* * * * * *
Class Tringle1
{
Public static void main(String args[])
{
for (int i=7;i>0; i++)
{
for (int j=1;j<=8-i;j++)
{
System.out.print("* ");
}
System.out.println();
}
}
}
Java Square pattern Program- Logic One
*
* *
* * *
* * * *
* * * * *
* * * * * *
Class Tringle1
{
Public static void main(String args[])
{
for (int i=1;i<=6; i++)
{
for (int j=1;j<=i;j++)
{
System.out.print("* ");
}
System.out.println();
}
}
}
Java Triangle pattern Program- Logic SIXTH
*
* *
* * *
* * * *
* * * * *
* * * * * *
Class Tringle3
{
Public static void main(String args[])
{
for (int i=0;i<7; i++)
{
for (int j=i;j>=1;j--)
{
System.out.print("* ");
}
System.out.println();
}
}
}
Java Square pattern Program- Logic SEVEN
*
* *
* * *
* * * *
* * * * *
* * * * * *
Class Tringle3
{
Public static void main(String args[])
{
for (int i=7;i>1; i--)
{
for (int j=1;j>=8-i;j--)
{
System.out.print("* ");
}
System.out.println();
}
}
}
Java Tringle pattern Program- Logic SIXTH
*
* *
* * *
* * * *
* * * * *
* * * * * *
Class Tringle3
{
Public static void main(String args[])
{
for (int i=0;i<7; i++)
{
for (int j=i;j>=1;j--)
{
System.out.print("* ");
}
System.out.println();
}
}
}
Java Square pattern Program- Logic FIVE
*
* *
* * *
* * * *
* * * * *
* * * * * *
Class Tringle3
{
Public static void main(String args[])
{
for (int i=0;i<6; i++)
{
for (int j=i;j>=1;j--)
{
System.out.print("* ");
}
System.out.println();
}
}
}
Java Square pattern Program- Logic Four
*
* *
* * *
* * * *
* * * * *
* * * * * *
Class Tringle3
{
Public static void main(String args[])
{
for (int i=1;i<7; i++)
{
for (int j=i;j>0;j--)
{
System.out.print("* ");
}
System.out.println();
}
}
}
Java Square pattern Program- Logic Three
*
* *
* * *
* * * *
* * * * *
* * * * * *
Class Tringle3
{
Public static void main(String args[])
{
for (int i=1;i<7; i++)
{
for (int j=1;j<i+1;j++)
{
System.out.print("* ");
}
System.out.println();
}
}
}
Java Square pattern Program- Logic One
*
* *
* * *
* * * *
* * * * *
* * * * * *
Class Tringle1
{
Public static void main(String args[])
{
for (int i=1;i<=6; i++)
{
for (int j=1;j<=i;j++)
{
System.out.print("* ");
}
System.out.println();
}
}
}
Java Square pattern Program- Logic Three
*
* *
* * *
* * * *
* * * * *
* * * * * *
Class Tringle3
{
Public static void main(String args[])
{
for (int i=1;i<7; i++)
{
for (int j=1;j<i+1;j++)
{
System.out.print("* ");
}
System.out.println();
}
}
}
Java Square pattern Program- Logic One
*
* *
* * *
* * * *
* * * * *
* * * * * *
Class Tringle1
{
Public static void main(String args[])
{
for (int i=1;i<=6; i++)
{
for (int j=1;j<=i;j++)
{
System.out.print("* ");
}
System.out.println();
}
}
}
Java Square pattern Program- Logic Four
*
* *
* * *
* * * *
* * * * *
* * * * * *
Class Tringle3
{
Public static void main(String args[])
{
for (int i=1;i<7; i++)
{
for (int j=i;j>0;j--)
{
System.out.print("* ");
}
System.out.println();
}
}
}
Java Square pattern Program- Logic Three
*
* *
* * *
* * * *
* * * * *
* * * * * *
Class Tringle3
{
Public static void main(String args[])
{
for (int i=1;i<7; i++)
{
for (int j=1;j<i+1;j++)
{
System.out.print("* ");
}
System.out.println();
}
}
}
No comments:
Post a Comment