0% found this document useful (0 votes)
7 views8 pages

Number and Character Patterns Guide

The document outlines various numeric, alphabetic, and star patterns, providing examples for each type. It includes simple number programs, Pascal's Triangle, and different arrangements of characters and stars in various shapes. Each pattern is presented in a structured format for easy understanding and implementation.

Uploaded by

ananyaannie1127
Copyright
© All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
7 views8 pages

Number and Character Patterns Guide

The document outlines various numeric, alphabetic, and star patterns, providing examples for each type. It includes simple number programs, Pascal's Triangle, and different arrangements of characters and stars in various shapes. Each pattern is presented in a structured format for easy understanding and implementation.

Uploaded by

ananyaannie1127
Copyright
© All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd

Numeric Pattern:

1. Simple number program

1
1 2
1 2 3
1 2 3 4
1 2 3 4 5

2. Number Pattern Program

1
2 3
4 5 6
7 8 9 10
11 12 13 14 15

3. Pascal’s Triangle

1
1 1
1 2 1
1 3 3 1
1 4 6 4 1

4. Diamond Pattern

1
212
32123
4321234
32123
212
1

5. Number Pattern Programs

1
2 2
3 3 3
4 4 4 4
5 5 5 5 5
6. Descending order Pattern

5
5 4
5 4 3
5 4 3 2
5 4 3 2 1

7. Right Triangle Numeric Pattern

1
2 1
3 2 1
4 3 2 1
5 4 3 2 1

8. Binary Number Pattern

10101
01010
10101
01010
10101

9. Zeros/ ones Pattern Programs

1
10
101
1010
10101

[Link] Numeric Pattern

1 2 3 4 5
2 3 4 5
3 4 5
4 5
5
4 5
3 4 5
2 3 4 5
1 2 3 4 5

11. Print Pyramid


1
2 3 2
3 4 5 4 3
4 5 6 7 6 5 4
5 6 7 8 9 8 7 6 5

Alphabet/Character Pattern:
[Link] Alphabetic triangle

A
A B
A B C
A B C D
A B C D E
A B C D E F

[Link]/ Character Pattern Programs

A
B B
C C C
D D D D
E E E E E
F F F F F F

14.K Shape Character Pattern Program

A B C D E F
A B C D E
A B C D
A B C
A B
A
A
A B
A B C
A B C D
A B C D E
A B C D E F

[Link] Character Pattern


A
A B
A B C
A B C D
A B C D E
A B C D E F

[Link] Pattern

Enter a Character between A to Z : F

A
B B
C C
D D
E E
F F
E E
D D
C C
B B
A

Star Patterns in Java

[Link] Program

*
* *
* * *
* * * *
* * * * *

18. Right Triangle Star Pattern

*
**
***
****
*****
19. Left Triangle Star Pattern

*
* *
* * *
* * * *
* * * * *

20. Diamond Shape Pattern

*
***
*****
*******
*********
*******
*****
***
*

21. Downward Triangle Star Pattern

* * * * *
* * * *
* * *
* *
*

22. Mirrored Right Triangle Star Program

*
**
***
****
*****
******

23. Reversed Pyramid Star Pattern

* * * * *
* * * *
* * *
* *
*
24. Right down Mirror Star Pattern

*****
****
***
**
*

25. Right Pascal’s Triangle

*
* *
* * *
* * * *
* * * * *
* * * *
* * *
* *
*

26. Left Triangle Pascal’s

*
**
***
****
*****
****
***
**
*

27. Sandglass Star Pattern

* * * * *
* * * *
* * *
* *
*
*
* *
* * *
* * * *
* * * * *
28. Triangle Star pattern

*
* *
* *
* *
*********

29. Down triangle

*********
* *
* *
* *
*

30. Diamond Star Pattern

*
* *
* *
* *
* *
* *
* *
* *
*

[Link] Pattern

*
*
*
*
*
32. X Pattern

* *
* *
**
*
**
* *
* *

33. Inverted V Pattern

*
**
* *
* *
* *

You might also like