https://github.com/kaviarasan-r/pattern-programming-java
Java pattern program enhances the coding skill, logic, and looping concepts. It is mostly asked in Java interview to check the logic and thinking of the programmer. We can print a Java pattern program in different designs.
https://github.com/kaviarasan-r/pattern-programming-java
java patterns programming
Last synced: 9 months ago
JSON representation
Java pattern program enhances the coding skill, logic, and looping concepts. It is mostly asked in Java interview to check the logic and thinking of the programmer. We can print a Java pattern program in different designs.
- Host: GitHub
- URL: https://github.com/kaviarasan-r/pattern-programming-java
- Owner: Kaviarasan-R
- Created: 2023-02-22T17:23:23.000Z (almost 3 years ago)
- Default Branch: main
- Last Pushed: 2023-02-22T17:30:39.000Z (almost 3 years ago)
- Last Synced: 2025-02-07T18:51:48.265Z (11 months ago)
- Topics: java, patterns, programming
- Language: Java
- Homepage:
- Size: 19.5 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
Hi, I'm Kavi Arasan!
Student at Hindusthan Institute
Working as a freelancer
[](https://twitter.com/rkavi267)
[](https://www.linkedin.com/in/kaviarasan-r/)
[](https://github.com/Kaviarasan-R)
Pattern Questions
Print these patterns using loops:
```text
1. *****
*****
*****
*****
*****
2. *
**
***
****
*****
3. *****
****
***
**
*
4. 1
1 2
1 2 3
1 2 3 4
1 2 3 4 5
5. *
**
***
****
*****
****
***
**
*
6. *
**
***
****
*****
7. *****
****
***
**
*
8. *
***
*****
*******
*********
9. *********
*******
*****
***
*
10. *
* *
* * *
* * * *
* * * * *
11. * * * * *
* * * *
* * *
* *
*
12. * * * * *
* * * *
* * *
* *
*
*
* *
* * *
* * * *
* * * * *
13. *
* *
* *
* *
*********
14. *********
* *
* *
* *
*
15. *
* *
* *
* *
* *
* *
* *
* *
*
16. 1
1 1
1 2 1
1 3 3 1
1 4 6 4 1
17. 1
212
32123
4321234
32123
212
1
18. **********
**** ****
*** ***
** **
* *
* *
** **
*** ***
**** ****
**********
19. * *
** **
*** ***
**** ****
**********
**** ****
*** ***
** **
* *
20. ****
* *
* *
* *
****
21. 1
2 3
4 5 6
7 8 9 10
11 12 13 14 15
22. 1
0 1
1 0 1
0 1 0 1
1 0 1 0 1
23. * * --> only work for input 3
* * * *
* * *
24. * *
** **
* * * *
* * * *
* ** *
* ** *
* * * *
* * * *
** **
* *
25. *****
* *
* *
* *
*****
26. 1 1 1 1 1 1
2 2 2 2 2
3 3 3 3
4 4 4
5 5
6
27. 1 2 3 4 17 18 19 20 --> only work for input 20
5 6 7 14 15 16
8 9 12 13
10 11
28. *
* *
* * *
* * * *
* * * * *
* * * *
* * *
* *
*
29. 1
2 1 2
3 2 1 2 3
4 3 2 1 2 3 4
5 4 3 2 1 2 3 4 5
30. 4 4 4 4 4 4 4
4 3 3 3 3 3 4
4 3 2 2 2 3 4
4 3 2 1 2 3 4
4 3 2 2 2 3 4
4 3 3 3 3 3 4
4 4 4 4 4 4 4
31. E
D E
C D E
B C D E
A B C D E
32. a
B c
D e F
g H i J
k L m N o
33. E D C B A
D C B A
C B A
B A
A
34. 1 1
12 21
123 321
12344321
35. 1 1
2 2
3 3
4 4
5
4 4
3 3
2 2
1 1
```