# All number patterns in C programming Language

## Introduction to Number Pattern in C

In this article, we will learn how to construct different number pattern programs in C. So before start learning the number pattern programs in c, we will make a quick overview of the definition on the number pattern in c.

## What is Number Pattern Programs in C?

A series of numbers that can be arranged in a particular order is known as the number Pattern Program in C. These patterns are created by arranging the numbers which are similar to the star patterns in C.

## Examples of number pattern programs in c language

Let us discuss some examples to understand the concept of Number Pattern Programs In c easily.

### Number pattern in C: 1

1
12
123
1234
12345

``````#include <stdio.h>
int main()
{
int i, j;
for(i=1; i<=5; i++)
{
for(j=1; j<=i; j++)
{
printf("%d", j);
}
printf("\n");
}
return 0;
}``````

### Number pattern in C : 2

5
45
345
2345
12345

``````#include <stdio.h>
int main()
{
int i, j;
for(i=5; i>=1; i--)
{
for(j=i; j<=5; j++)
{
printf("%d", j);
}
printf("\n");
}
return 0;
}``````

### Number pattern in C : 3

12345
1234
123
12
1
``````#include <stdio.h>
int main()
{
int i, j;
for(i=5; i>=1; i--)
{
for(j=1; j<=i; j++)
{
printf("%d", j);
}
printf("\n");
}
return 0;
}``````

### Number pattern in C: 4

12345
2345
345
45
5
``````#include <stdio.h>
int main()
{
int i, j;
for(i=1; i<=5; i++)
{
for(j=i; j<=5; j++)
{
printf("%d", j);
}
printf("\n");
}
return 0;
}``````

### Number pattern in C : 5

54321
4321
321
21
1
``````#include <stdio.h>
int main()
{
int i, j;
for(i=5; i>=1; i--)
{
for(j=i; j>=1; j--)
{
printf("%d", j);
}
printf("\n");
}
return 0;
}``````

### Number pattern in C : 6

54321
5432
543
54
5
``````#include <stdio.h>
int main()
{
int i, j;
for(i=1; i<=5; i++)
{
for(j=5; j>=i; j--)
{
printf("%d", j);
}
printf("\n");
}
return 0;
}``````

### Number pattern in C : 7

1
21
321
4321
54321
``````#include <stdio.h>
int main()
{
int i, j;
for(i=1; i<=5; i++)
{
for(j=i; j>=1; j--)
{
printf("%d", j);
}
printf("\n");
}
return 0;
}``````

### Number pattern in C : 8

5
54
543
5432
54321
``````#include <stdio.h>
int main()
{
int i, j;
for(i=5; i>=1; i--)
{
for(j=5; j>=i; j--)
{
printf("%d", j);
}
printf("\n");
}
return 0;
}``````

### Number pattern in C : 9

1
22
333
4444
55555
``````#include <stdio.h>
int main()
{
int i, j;
for(i=1; i<=5; i++)
{
for(j=1; j<=i; j++)
{
printf("%d", i);
}
printf("\n");
}
return 0;
}``````

### Number pattern in C : 10

5
44
333
2222
11111

``````#include <stdio.h>
int main()
{
int i, j;
for(i=5; i>=1; i--)
{
for(j=5; j>=i; j--)
{
printf("%d", i);
}
printf("\n");
}
return 0;
}``````

### Number pattern in C : 11

1234567
12345
123
1
``````#include <stdio.h>
int main()
{
int i, j;
for(i=7; i>=1; i-=2)
{
for(j=1; j<=i; j++)
{
printf("%d", j);
}
printf("\n");
}
return 0;
}``````

### Number pattern in C : 12

12345
4321
123
21
1
``````#include <stdio.h>
int main()
{
int i,j,k;
for(i=5; i>=1; i--)
{
if(i%2==1) k=1;
else k=i;
for(j=1; j<=i; j++)
{
printf("%d", k);
if(i%2==1) k++;
else k--;
}
printf("\n");
}
return 0;
}``````

### Number pattern in C : 13

1234567
12345
123
1
``````#include <stdio.h>
int main()
{
int i, j;
for(i=7; i>=1; i-=2)
{
for(j=1; j<=i; j++)
{
printf("%d", j);
}
printf("\n");
}
return 0;
}``````

### Number pattern in C : 14

11111
2222
333
44
5
``````#include <stdio.h>
int main()
{
int i, j;
for(i=1; i<=5; i++)
{
for(j=5; j>=i; j--)
{
printf("%d", i);
}
printf("\n");
}
return 0;
}``````

### Number pattern in C : 15

55555
45555
34555
23455
12345
``````#include <stdio.h>
int main()
{
int i, j, k;
for(i=5; i>=1; i--)
{
k = i;
for(j=1; j<=5; j++)
{
if(k <= 5)
{
printf("%d", k);
}
else
{
printf("5");
}
k++;
}
printf("\n");
}
return 0;
}``````

### Number pattern in C : 16

1
01
101
0101
``````#include <stdio.h>
int main()
{
int i, j;
for(i=1; i<=4; i++)
{
for(j=i; j>=1; j--)
{
printf("%d",j%2);
}
printf("\n");
}
return 0;
}``````

### Number pattern in C : 17

1
24
135
2468
13579
``````#include <stdio.h>
int main()
{
int i, j, k;
for(i=1; i<=5; i++)
{
if(i%2==0)
{
k=2;
}
else
{
k = 1;
}
for(j=1; j<=i; j++,k+=2)
{
printf("%d ", k);
}
printf("\n");
}
return 0;
}``````

### Number pattern in C : 18

13579
3579
579
79
9
``````#include <stdio.h >
int main() {
int i, j;
for (i = 1; i <= 9; i += 2) {
for (j = i; j <= 9; j += 2) {
printf("%d", j);
}
printf("\n");
}

return 0;
}``````

### Number pattern in C : 19

``````0        0
01      01
010    010
0101  0101
0101001010``````
``````#include<stdio.h>

int main()
{
int i,j,k,l=8,m,n,o,p;
for(i=0; i<=4; i++)
{
for(j=0; j<=i; j++)
{
if(j%2==0)
printf("0");
else
printf("1");
}
for(k=1; k<=l; k++)
{
printf(" ");
}
l = l-2;
for(m=0; m<=i; m++)
{
if(m%2==0)
printf("0");
else
printf("1");
}

printf("\n");
}
return 0;
}``````

### Number pattern in C : 20

``````     0
01
010
0101
01010``````
``````#include<stdio.h>

int main()
{
int i,j,k;

for(i=0 ; i<=4 ; i++)
{
for(j=4 ; j>i ; j--)
printf(" ");

for(k=0 ; k<=i; k++)
{
if(k%2==0)
printf("0");
else
printf("1");
}
printf("\n");
}

return 0;
}``````

TaggedAll number patterns using C programming Language

### Java Final keyword

Introduction : java final keyword The final keyword present in Java programming language is generally used for restricting the user. …

### C++ Memory Management: new and delete

C++ Memory Management We know that arrays store contiguous and the same type of memory blocks, so memory is allocated …