Number pattern programs in C

Number patterns are logical programs that basically are used to enhance your logical thinking abilities. These patterns are patterns created by numbers and are similar to star patterns. Enhance your logical thinking abilities by coding these patterns. Here is a list of basic, advanced, tricky and popular number patterns with logic and explanation. Learn how to print all these number pattern programs in C. Practice more and more of it to enhance your logical thinking.


Square number patterns

11111
11111
11111
11111
11111

Number pattern 1

11111
00000
11111
00000
11111

Number pattern 2

01010
01010
01010
01010
01010

Number pattern 3

11111
10001
10001
10001
11111

Number pattern 4

11111
11111
11011
11111
11111

Number pattern 5

10101
01010
10101
01010
10101

Number pattern 6

11011
11011
00000
11011
11011

Number pattern 7

10001
01010
00100
01010
10001

Number pattern 8

01110
10001
10001
10001
01110

Number pattern 9

11111
22222
33333
44444
55555

Number pattern 10

12345
12345
12345
12345
12345

Number pattern 11

12345
23456
34567
45678
56789

Number pattern 12

1  2  3  4  5
6  7  8  9  10
11 12 13 14 15
16 17 18 19 20
21 22 23 24 25

Number pattern 13

55555
54444
54333
54322
54321

Number pattern 14

12345
23455
34555
45555
55555

Number pattern 15

12345
23451
34521
45321
54321

Number pattern 16

12345
21234
32123
43212
54321

Number pattern 17

5 5 5 5 5 5 5 5 5
5 4 4 4 4 4 4 4 5
5 4 3 3 3 3 3 4 5
5 4 3 2 2 2 3 4 5
5 4 3 2 1 2 3 4 5
5 4 3 2 2 2 3 4 5
5 4 3 3 3 3 3 4 5
5 4 4 4 4 4 4 4 5
5 5 5 5 5 5 5 5 5

Number pattern 18

1    2    3    4    5
16   17   18   19   6
15   24   25   20   7
14   23   22   21   8
13   12   11   10   9

Number pattern 19


Triangle easy number patterns

1
22
333
4444
55555

Number pattern 20

55555
4444
333
22
1

Number pattern 21

11111
2222
333
44
5

Number pattern 22

5
44
333
2222
11111

Number pattern 23

1
12
123
1234
12345

Number pattern 24

12345
1234
123
12
1

Number pattern 25

1
21
321
4321
54321

Number pattern 26

54321
4321
321
21
1

Number pattern 27

5
54
543
5432
54321

Number pattern 28

54321
5432
543
54
5

Number pattern 29

5
45
345
2345
12345

Number pattern 30

12345
2345
345
45
5

Number pattern 31

1
23
345
4567
56789

Number pattern 32

56789
4567
345
23
1

Number pattern 33

13579
3579
579
79
9

Number pattern 34


Triangle 0,1 easy patterns

1
10
101
1010
10101

Number pattern 35

1
00
111
0000
11111

Number pattern 36

1
01
010
1010
10101

Number pattern 37

1
11
101
1001
11111

Number pattern 38


Triangle hard number patterns

1
123
12345
1234567
123456789

Number pattern 39

1
24
135
2468
13579

Number pattern 40

1
131
13531
1357531
135797531

Number pattern 41

2
242
24642
2468642
2468108642

Number pattern 42

1
121
12321
1234321
123454321

Number pattern 43

1
32
4543
567654
67898765

Number pattern 44

1
2  3
4  5  6
7  8  9  10
11 12 13 14 15

Number pattern 45

1
21
123
4321
12345

Number pattern 46

1
23
4567
89123456
7891234567891234

Number pattern 47

1        1
12      21
123    321
1234  4321
1234554321

Number pattern 48

1  
2  6
3  7  10
4  8  11 13
5  9  12 14 15

Number pattern 49

1
2  4
7  11 16
22 29 37 46
56 67 79 92 106

Number pattern 50

1
3  2
4  5  6
10 9  8  7
11 12 13 14 15

Number pattern 51

1
22
333
2222
11111

Number pattern 52

N = 12345

12345
1234
123
12
1

Number pattern 53

N = 12345

12345
2345
345
45
5

Number pattern 54


Diamond number patterns

1
12
123
1234
12345
1234
123
12
1

Number pattern 55

1
123
12345
1234567
123456789
1234567
12345
123
1

Number pattern 56

1
121
12321
1234321
123454321
1234321
12321
121
1

Number pattern 57


Diamond number pattern with star border

*
*1*
*121*
*12321*
*1234321*
*123454321*
*1234321*
*12321*
*121*
*1*
*

Number pattern 58


Tricky number pattern

1       1
 2     2
  3   3
   4 4
    5
   4 4
  3   3
 2     2
1       1

Number pattern 59

Happy coding 😉

Write your doubts or suggestion. I will try my best to help. You must escape source code before commenting. To format your source code paste your source code inside
<pre><code> ----Your Source Code---- </code></pre>