https://github.com/fahimfba/pattern-printing-java
Solve Any Pattern Question with This Trick! Learnt from Kunal Kushwaha.
https://github.com/fahimfba/pattern-printing-java
java pattern pattern-printing pattern-printing-programs-star structured-programming
Last synced: 6 months ago
JSON representation
Solve Any Pattern Question with This Trick! Learnt from Kunal Kushwaha.
- Host: GitHub
- URL: https://github.com/fahimfba/pattern-printing-java
- Owner: FahimFBA
- License: unlicense
- Created: 2022-03-08T16:59:58.000Z (over 3 years ago)
- Default Branch: main
- Last Pushed: 2022-03-17T10:15:17.000Z (over 3 years ago)
- Last Synced: 2025-02-05T03:42:16.386Z (8 months ago)
- Topics: java, pattern, pattern-printing, pattern-printing-programs-star, structured-programming
- Language: Java
- Homepage: https://fahimfba.github.io/pattern-printing-java/
- Size: 21.5 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
- Code of conduct: CODE_OF_CONDUCT.md
Awesome Lists containing this project
README
# pattern-printing-java



## Note
1. Number of lines = number of rows = number times the outer loop will run
2. Identify for every row numbers, how many columns are there or types of elements in the column
3. What do you need to print
4. Try to find the formula relating rows and columns## Patterns Covered Here (Using Java)
### Pattern 1
```
*
* *
* * *
* * * *
```
#### [Source Code](pattern01.java)### Pattern 2
```
* * * *
* * * *
* * * *
* * * *
```
#### [Source Code](pattern02.java)### Pattern 3
```
* * * *
* * *
* *
*
```
#### [Source Code](pattern03.java)### Pattern 4
```
1
1 2
1 2 3
1 2 3 4
```
#### [Source Code](pattern04.java)
### Pattern 5
```
*
* *
* * *
* * * *
* * * * *
* * * *
* * *
* *
*
```
#### [Source Code](pattern05.java)### Pattern 6
```
*
* *
* * *
* * * *
* * * * *
* * * *
* * *
* *
*
```
#### [Source Code](pattern06.java)
### Pattern 7
```
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
```
#### [Source Code](pattern07.java)### Pattern 8
```
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
4 3 2 1 2 3 4
3 2 1 2 3
2 1 2
1
```
#### [Source Code](pattern08.java)
### Pattern 9
```
4 4 4 4 4 4 4 4 4
4 3 3 3 3 3 3 3 4
4 3 2 2 2 2 2 3 4
4 3 2 1 1 1 2 3 4
4 3 2 1 0 1 2 3 4
4 3 2 1 1 1 2 3 4
4 3 2 2 2 2 2 3 4
4 3 3 3 3 3 3 3 4
4 4 4 4 4 4 4 4 4
```
#### [Source Code](pattern09.java)