# Number Digits Pattern Series Programs in C

## Number Digits Pattern Series Programs in C

Looping और iterative statements के बारे में और अधिक जानने के लिए देखें— Looping statements in C

Switch statement और multibranching statements के बारे में अधिक जानने के लिए देखें—Switch statements in C

C Language के बारे में अधिक जानने के लिए देखें—Brief Introduction of C

### Write a C program to generate/print following number digit rectangle pattern/series:

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

### Write a C program to generate/print following number digit right angle pattern/series:

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

### Write a C program to generate/print following number digit repeatedly increasing right angle pattern/series:

`122333444455555`
``````#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;
}``````

### Write a C program to generate/print following number digit increasing right angle pattern/series:

`112123123412345`
``````#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;
}``````

### Write a C program to generate/print following number digit sequentially increasing right angle pattern/series:

`12   34   5   67   8   9   1011  12  13  14   15`
``````#include<stdio.h>
int main()
{
int i,j,k=1;
for(i=1;i<=5;i++)
{
for(j=1;j<=i;j++)
{
printf("%d\t",k);
k++;
}
printf("\n");
}
return 0;
}``````

### Write a C program to generate/print following odd number digit sequentially increasing right angle pattern/series:

`13   57   9   1113  15  17  1921  23  25  27  29   `
``````#include<stdio.h>
int main()
{
int i,j,k=1;
for(i=1;i<=5;i++)
{
for(j=1;j<=i;j++)
{

printf("%d\t",k);
k=k+2;
}
printf("\n");
}
return 0;
}``````

### Write a C program to generate/print following even number digit sequentially increasing right angle pattern/series:

`24   68   10   1214  16   18   2022  24   26   28   30`
``````#include<stdio.h>
int main()
{
int i,j,k=2;
for(i=1;i<=5;i++)
{
for(j=1;j<=i;j++)
{

printf("%d\t",k);
k=k+2;
}
printf("\n");
}
return 0;
}``````

### Write a C program to generate/print following binary pattern/series:

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

### Write a C program to generate/print following binary pattern/series:

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

### Write a C program to generate/print following even number digit horizontally increasing right angle pattern/series:

`22 42 4 62 4 6 82 4 6 8 10`
``````#include<stdio.h>
int main()
{
int i,j,k;
for(i=1;i<=5;i++)
{
k=2;
for(j=1;j<=i;j++)
{
printf("%d\t",k);
k=k+2;
}
printf("\n");
}
return 0;
}``````

### Write a C program to generate/print following odd number digit horizontally increasing right angle pattern/series:

`11 31 3 51 3 5 71 3 5 7 9`
``````#include<stdio.h>
int main()
{
int i,j,k;
for(i=1;i<=5;i++)
{
k=1;
for(j=1;j<=i;j++)
{
printf("%d\t",k);
k=k+2;
}
printf("\n");
}
return 0;
}``````

### Write a C program to generate/print following even number digit repeatedly increasing right angle pattern/series:

`24   46   6   68   8   8   810  10  10  10  10`
``````#include<stdio.h>
int main()
{
int i,j,k=2;
for(i=1;i<=5;i++)
{
for(j=1;j<=i;j++)
{
printf("%d\t",k);
}
k=k+2;
printf("\n");
}
return 0;
}``````

### Write a C program to generate/print following even number digit repeatedly increasing right angle pattern/series:

`13 35 5 57 7 7 79 9 9 9 9`
``````#include<stdio.h>
int main()
{
int i,j,k=1;
for(i=1;i<=5;i++)
{
for(j=1;j<=i;j++)
{
printf("%d\t",k);
}
k=k+2;
printf("\n");
}
return 0;
}``````

Share it to: