KEMBAR78
Wa0013. | PDF
0% found this document useful (0 votes)
3 views7 pages

Wa0013.

Uploaded by

dajjalk74
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)
3 views7 pages

Wa0013.

Uploaded by

dajjalk74
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
You are on page 1/ 7

20 Java Nested Loop Patterns

1. Right-Angled Triangle

* *

* * *

* * * *

* * * * *

2. Inverted Right-Angled Triangle

* * * * *

* * * *

* * *

* *

3. Pyramid Pattern

* *

* * *

* * * *

* * * * *

4. Inverted Pyramid
* * * * *

* * * *

* * *

* *

5. Diamond Pattern

* *

* * *

* * * *

* * * * *

* * * *

* * *

* *

6. Square of Stars

* * * * *

* * * * *

* * * * *

* * * * *

* * * * *

7. Hollow Square
* * * * *

* *

* *

* *

* * * * *

8. Hollow Right-Angled Triangle

* *

* *

* *

* * * * *

9. Number Pyramid

1 2

1 2 3

1 2 3 4

1 2 3 4 5

10. Inverted Number Pyramid

1 2 3 4 5

1 2 3 4

1 2 3

1 2
1

11. Floyd's Triangle

2 3

4 5 6

7 8 9 10

11 12 13 14 15

12. Character Pyramid

A B

A B C

A B C D

A B C D E

13. Inverted Character Pyramid

A B C D E

A B C D

A B C

A B

14. Checkerboard Pattern

* * * * *
* * * * *

* * * * *

* * * * *

* * * * *

15. Zigzag Pattern

* *

* * * *

* * * *

* * * *

16. Hourglass Pattern

* * * * *

* * * *

* * *

* *

* *

* * *

* * * *

* * * * *

17. Pascal's Triangle

1 1
1 2 1

1 3 3 1

1 4 6 4 1

18. Diamond of Numbers

1 2

1 2 3

1 2 3 4

1 2 3 4 5

1 2 3 4

1 2 3

1 2

19. Binary Triangle

0 1

1 0 1

0 1 0 1

1 0 1 0 1

20. Hollow Diamond

* *
* *

* *

* *

* *

* *

* *

You might also like