An open API service indexing awesome lists of open source software.

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.

Awesome Lists containing this project

README

          

Hi, I'm Kavi Arasan!


Student at Hindusthan InstituteWorking as a freelancer

[![Twitter: Kavi R](https://img.shields.io/twitter/follow/rkavi2679?style=social)](https://twitter.com/rkavi267)
[![Linkedin: Kavi](https://img.shields.io/badge/kavi-blue?style=flat-square&logo=Linkedin&logoColor=white&link=https://www.linkedin.com/in/kaviarasan-r/)](https://www.linkedin.com/in/kaviarasan-r/)
[![GitHub Kavi](https://img.shields.io/github/followers/Kaviarasan-R?style=social)](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

```