SECTION-1
BASIC PATTERN PROGRAMMING
1. OUTPUT
Enter no of row:4
*
*
*
*
2. OUTPUT
Enter no of row:4
****
© 2025 Asutosh Khatua. All rights reserved.
3. OUTPUT
Enter no of row:4
ABCD
4. OUTPUT
Enter no of row:4
A
B
C
D
© 2025 Asutosh Khatua. All rights reserved.
5. OUTPUT
Enter no of row:4
1234
6. OUTPUT
Enter no of row:4
1
2
3
4
© 2025 Asutosh Khatua. All rights reserved.
SECTION-2
SQUARE PATTERN PROGRAMMING
1. OUTPUT
Enter no of rows:4
****
****
****
****
2. OUTPUT
Enter no of rows:4
1111
2222
3333
4444
© 2025 Asutosh Khatua. All rights reserved.
3. OUTPUT
Enter no of rows:4
AAAA
BBBB
CCCC
DDDD
4. OUTPUT
Enter no of rows:4
1234
1234
1234
1234
© 2025 Asutosh Khatua. All rights reserved.
5. OUTPUT
Enter no of rows:4
ABCD
ABCD
ABCD
ABCD
© 2025 Asutosh Khatua. All rights reserved.
SECTION-3
RIGHT ANGLE TRIANGLE PATTERN
1. OUTPUT
Enter no of row:4
*
**
***
****
2. OUTPUT
Enter no of row:4
1
22
333
4444
© 2025 Asutosh Khatua. All rights reserved.
3. OUTPUT
Enter no of row:4
A
BB
CCC
DDDD
4. OUTPUT
Enter no of row:4
1
12
123
1234
© 2025 Asutosh Khatua. All rights reserved.
5. OUTPUT
Enter no of row:4
A
AB
ABC
ABCD
© 2025 Asutosh Khatua. All rights reserved.
SECTION-4
INVERTED RIGHT ANGLE TRIANGLE PATTERN
1. OUTPUT
Enter no of row:4
****
***
**
*
2. OUTPUT
Enter no of row:4
1111
222
33
4
© 2025 Asutosh Khatua. All rights reserved.
3. OUTPUT
Enter no of row:4
AAAA
BBB
CC
D
4. OUTPUT
Enter no of row:4
1234
123
12
1
© 2025 Asutosh Khatua. All rights reserved.
5. OUTPUT
Enter no of row:4
ABCD
ABC
AB
A
© 2025 Asutosh Khatua. All rights reserved.
SECTION-5
PYRAMID PATTERN
1. OUTPUT
Enter no of row:4
*
* *
* * *
* * * *
2. OUTPUT
Enter no of row:4
1
2 2
3 3 3
4 4 4 4
© 2025 Asutosh Khatua. All rights reserved.
3. OUTPUT
Enter no of row:4
A
B B
C C C
D D D D
4. OUTPUT
Enter no of row:4
1
1 2
1 2 3
1 2 3 4
© 2025 Asutosh Khatua. All rights reserved.
5. OUTPUT
enter no of row:4
A
A B
A B C
A B C D
© 2025 Asutosh Khatua. All rights reserved.
SECTION-6
INVERTED PYRAMID PATTERN
1. OUTPUT
Enter no of row:4
* * * *
* * *
* *
*
2. OUTPUT
Enter no of row:4
1 1 1 1
2 2 2
3 3
4
© 2025 Asutosh Khatua. All rights reserved.
3. OUTPUT
Enter no of row:4
A A A A
B B B
C C
D
4. OUTPUT
Enter no of row:4
1 2 3 4
1 2 3
1 2
1
© 2025 Asutosh Khatua. All rights reserved.
5. OUTPUT
Enter no of row:4
A B C D
A B C
A B
A
© 2025 Asutosh Khatua. All rights reserved.
SECTION-7
DIAMOND PATTERN
1. OUTPUT
Enter no of row:4
*
* *
* * *
* * * *
* * *
* *
*
2. OUTPUT
Enter no of row:4
1
2 2
3 3 3
4 4 4 4
3 3 3
2 2
1
© 2025 Asutosh Khatua. All rights reserved.
3. OUTPUT
Enter no of row:4
A
B B
C C C
D D D D
C C C
B B
A
4. OUTPUT
Enter no of row:4
1
1 2
1 2 3
1 2 3 4
1 2 3
1 2
1
© 2025 Asutosh Khatua. All rights reserved.
5. OUTPUT
Enter no of row:4
A
A B
A B C
A B C D
A B C
A B
A
© 2025 Asutosh Khatua. All rights reserved.
SECTION-8
LEFT-HALF DIAMOND PATTERN
1. OUTPUT
Enter no of row:4
*
**
***
****
***
**
*
2. OUTPUT
Enter no of row:4
1
22
333
4444
333
22
1
© 2025 Asutosh Khatua. All rights reserved.
3. OUTPUT
Enter no of row:4
A
BB
CCC
DDDD
CCC
BB
A
4. OUTPUT
Enter no of row:4
1
12
123
1234
123
12
1
© 2025 Asutosh Khatua. All rights reserved.
5. OUTPUT
Enter no of row:4
A
AB
ABC
ABCD
ABC
AB
A
© 2025 Asutosh Khatua. All rights reserved.
SECTION-9
RIGHT-HALF DIAMOND PATTERN
1. OUTPUT
Enter no of row:4
*
**
***
****
***
**
*
2. OUTPUT
Enter no of row:4
1
22
333
4444
333
22
1
© 2025 Asutosh Khatua. All rights reserved.
3. OUTPUT
Enter no of row:4
A
BB
CCC
DDDD
CCC
BB
A
4. OUTPUT
Enter no of row:4
1
12
123
1234
123
12
1
© 2025 Asutosh Khatua. All rights reserved.
5. OUTPUT
Enter no of row:4
A
AB
ABC
ABCD
ABC
AB
A
© 2025 Asutosh Khatua. All rights reserved.
SECTION-10
HOLLOW PYRAMID PATTERN
1. OUTPUT
Enter the no of rows:4
*
* *
* *
* *
2. OUTPUT
Enter the no of rows:4
1
2 2
3 3
4 4
© 2025 Asutosh Khatua. All rights reserved.
3. OUTPUT
Enter the no of rows:4
A
B B
C C
D D
4. OUTPUT
Enter the no of rows:4
0
1 2
2 3
3 4
© 2025 Asutosh Khatua. All rights reserved.
5. OUTPUT
Enter the no of rows:4
A
B C
C D
D E
© 2025 Asutosh Khatua. All rights reserved.
SECTION-11
INVERTED HOLLOW PYRAMID PATTERN
1. OUTPUT
Enter the no of rows:4
* *
* *
* *
*
2. OUTPUT
Enter the no of rows:4
1 1
2 2
3 3
4
© 2025 Asutosh Khatua. All rights reserved.
3. OUTPUT
Enter the no of rows:4
A A
B B
C C
D
© 2025 Asutosh Khatua. All rights reserved.
SECTION-12
HOLLOW DIAMOND PATTERN
1. OUTPUT
Enter no of rows:4
*
* *
* *
* *
* *
* *
*
© 2025 Asutosh Khatua. All rights reserved.
SECTION-13
ALPHABET PATTERN
1. OUTPUT
***
* *
* *
*****
* *
* *
* *
© 2025 Asutosh Khatua. All rights reserved.