Download as pdf or txt
Download as pdf or txt
You are on page 1of 26

Pattern: 1

R/C C1 C2 C3 C4 C5 Rows Columns Relation b/w R & C Printing Value


1 1 1 1 1 R1 1 1 1 1 1 1 1, 2, 3, 4, 5 R= 1 C= 1, 1, 1, 1, 1 R
2 2 2 2 2 R2 2 2 2 2 2 2 1, 2, 3, 4, 5 R= 2 C= 2, 2, 2, 2, 2 R
3 3 3 3 3
R3 3 3 3 3 3 3 1, 2, 3, 4, 5 R= 3 C= 3, 3, 3, 3, 3 R
4 4 4 4 4
5 5 5 5 5 R4 4 4 4 4 4 4 1, 2, 3, 4, 5 R= 4 C= 4, 4, 4, 4, 4 R
R5 5 5 5 5 5 5 1, 2, 3, 4, 5 R= 5 C= 5, 5, 5, 5, 5 R

Rules:
1. First, convert the given pattern into a matrix (RxC).
2. Find the column values for every row.
3. Find the relationship between rows and columns.
4. Find the inner loop conditions based on the above observations.

Pattern 1 Page 1
Pattern: 2
R/C C1 C2 C3 C4 C5 Rows Columns Relation b/w R & C Printing Value
1 2 3 4 5 R1 1 2 3 4 5 1 1, 2, 3, 4, 5 R= 1 C= 1, 2, 3, 4, 5 C
1 2 3 4 5 R2 1 2 3 4 5 2 1, 2, 3, 4, 5 R= 2 C= 1, 2, 3, 4, 5 C
1 2 3 4 5
R3 1 2 3 4 5 3 1, 2, 3, 4, 5 R= 3 C= 1, 2, 3, 4, 5 C
1 2 3 4 5
1 2 3 4 5 R4 1 2 3 4 5 4 1, 2, 3, 4, 5 R= 4 C= 1, 2, 3, 4, 5 C
R5 1 2 3 4 5 5 1, 2, 3, 4, 5 R= 5 C= 1, 2, 3, 4, 5 C

Rules:
1. First, convert the given pattern into a matrix (RxC).
2. Find the column values for every row.
3. Find the relationship between rows and columns.
4. Find the inner loop conditions based on the above observations.

Pattern 2 Page 1
Pattern: 3
R/C C1 C2 C3 C4 C5 Rows Columns Relation b/w R & C Printing Value
5 5 5 5 5 R1 5 5 5 5 5 1 1, 2, 3, 4, 5 R= 1 C= 5, 5, 5, 5, 5 6-R
4 4 4 4 4 R2 4 4 4 4 4 2 1, 2, 3, 4, 5 R= 2 C= 4, 4, 4, 4, 4 6-R
3 3 3 3 3 R3 3 3 3 3 3 3 1, 2, 3, 4, 5 R= 3 C= 3, 3, 3, 3, 3 6-R
2 2 2 2 2 R4 2 2 2 2 2 4 1, 2, 3, 4, 5 R= 4 C= 2, 2, 2, 2, 2 6-R
1 1 1 1 1 R5 1 1 1 1 1 5 1, 2, 3, 4, 5 R= 5 C= 1, 1, 1, 1, 1 6-R

Rules:
1. First, convert the given pattern into a matrix (RxC).
2. Find the column values for every row.
3. Find the relationship between rows and columns.
4. Find the inner loop conditions based on the above observations.

Pattern 3 Page 1
Pattern: 4
R/C C1 C2 C3 C4 C5 Rows Columns Relation b/w R & C Printing Value
5 4 3 2 1 R1 5 4 3 3 1 1 1, 2, 3, 4, 5 R=1 C= 5, 4, 3, 2, 1 6-C to 1
5 4 3 2 1 R2 5 4 3 2 1 2 1, 2, 3, 4, 5 R=2 C= 5, 4, 3, 2, 1 6-C to 1
5 4 3 2 1 R3 5 4 3 2 2 3 1, 2, 3, 4, 5 R=3 C= 5, 4, 3, 2, 1 6-C to 1
5 4 3 2 1 R4 5 4 3 2 1 4 1, 2, 3, 4, 5 R=4 C= 5, 4, 3, 2, 1 6-C to 1
5 4 3 2 1 R5 5 4 3 2 1 5 1, 2, 3, 4, 5 R=5 6-C to 1
C= 5, 4, 3, 2, 1

Rules:
1. First, convert the given pattern into a matrix (RxC).
2. Find the column values for every row.
3. Find the relationship between rows and columns.
4. Find the inner loop conditions based on the above observations.

Pattern 4 Page 1
Pattern: 5
R/C C1 C2 C3 C4 C5 Rows Columns Relation between R & C Condition
1 R1 1 1 1 R=1 C= 1 C= 1 to <=R1
1 2 R2 1 2 2 1, 2 R=2 C= 1, 2 C= 1 to <=R2
1 2 3 R3 1 2 3 3 1, 2, 3 R=3 C= 1, 2, 3 C= 1 to <=R3
1 2 3 4 R4 1 2 3 4 4 1, 2, 3, 4 R=4 C= 1, 2, 3, 4 C= 1 to <=R4
1 2 3 4 5 R5 1 2 3 4 5 5 1, 2, 3, 4, 5 R=5 C= 1, 2, 3, 4, 5 C= 1 to <=R5

Rules:
1. First, convert the given pattern into a matrix (RxC).
2. Find the column values for every row.
3. Find the relationship between rows and columns.
4. Find the inner loop conditions based on the above observations.

Pattern 5 Page 1
Pattern: 6
R/C C1 C2 C3 C4 C5 Rows Columns Relation between R & C Condition
1 R1 1 1 1 R=1 C= 1 C= 1 to <=R1
2 2 R2 2 2 2 1, 2 R=2 C= 2, 2 C= 1 to <=R2
3 3 3 R3 3 3 3 3 1, 2, 3 R=3 C= 3, 3, 3 C= 1 to <=R3
4 4 4 4 R4 4 4 4 4 4 1, 2, 3, 4 R=4 C= 4, 4, 4, 4 C= 1 to <=R4
5 5 5 5 5 R5 5 5 5 5 5 5 1, 2, 3, 4, 5 R=5 C= 5, 5, 5, 5, 5 C= 1 to <=R5

Rules:
1. First, convert the given pattern into a matrix (RxC).
2. Find the column values for every row.
3. Find the relationship between rows and columns.
4. Find the inner loop conditions based on the above observations.

Pattern 6 Page 1
Pattern: 7
R/C C1 C2 C3 C4 C5 Rows Columns Relation between R & C Condition
5 R1 5 1 1 R=1 C= 5 C= 1 to <=R1
4 4 R2 4 4 2 1, 2 R=2 C= 4, 4 C= 1 to <=R2
3 3 3 R3 3 3 3 3 1, 2, 3 R=3 C= 3, 3, 3 C= 1 to <=R3
2 2 2 2 R4 2 2 2 2 4 1, 2, 3, 4 R=4 C= 2, 2, 2, 2 C= 1 to <=R4
1 1 1 1 1 R5 1 1 1 1 1 5 1, 2, 3, 4, 5 R=5 C= 1, 1, 1, 1, 1 C= 1 to <=R5

Rules:
1. First, convert the given pattern into a matrix (RxC).
2. Find the column values for every row.
3. Find the relationship between rows and columns.
4. Find the inner loop conditions based on the above observations.

Pattern 7 Page 1
Pattern: 8
R/C C1 C2 C3 C4 C5 Rows Columns Relation between R & C Condition
5 R1 5 1 1 R=1 C= 5 C= 1 to <=R1
5 4 R2 5 4 2 1, 2 R=2 C= 5, 4 C= 1 to <=R2
5 4 3 R3 5 4 3 3 1, 2, 3 R=3 C= 5, 4, 3 C= 1 to <=R3
5 4 3 2 R4 5 4 3 2 4 1, 2, 3, 4 R=4 C= 5, 4, 3, 2 C= 1 to <=R4
5 4 3 2 1 R5 5 4 3 2 1 5 1, 2, 3, 4, 5 R=5 C= 5, 4, 3, 2, 1 C= 1 to <=R5

Rules:
1. First, convert the given pattern into a matrix (RxC).
2. Find the column values for every row.
3. Find the relationship between rows and columns.
4. Find the inner loop conditions based on the above observations.

Pattern 8 Page 1
Pattern 9 Page 1
Pattern 10 Page 1
Pattern 11 Page 1
Pattern 12 Page 1
Pattern 13 Page 1
Pattern 14 Page 1
Screen clipping taken: 8/24/2022 10:34 AM

Pattern 15 Page 1
Pattern 16 Page 1
Pattern 17 Page 1
Pattern 18 Page 1
Pattern 18 Page 2
Screen clipping taken: 8/28/2022 10:37 AM

Pattern 19 Page 1
Pattern 19 Page 2
Screen clipping taken: 8/28/2022 8:11 PM

Pattern 20 Page 1
Pattern 21 Page 1
Pattern 22 Page 1
Screen clipping taken: 8/28/2022 12:21 P

Screen clipping taken: 8/28/2022 12:51 PM

Pattern 23 Page 1
Pattern 24 Page 1

You might also like