Accourding to me, Any patterns are designed with use of for loop, And it is a Simple way to print any patterns. Any patterns are designed by the Combinations of any for loop and any other loops or conditions.
C programming code of patterns
#include<conio.h>
#include<stdio.h>
void main()
{
int n, m, i, j;
clrscr();
printf("\n Enter the No ");
scanf("%d",&n);
for( i = 1 ; i <= n ; i++ )
{
printf("\n%3d ", i);
m = i + n - 1;
for( j = 1 ; j < i ; j++ )
{
printf("%3d ", m);
m = m - j + n - 1;
}
}
getch();
}
Output:-

C programming code of patterns
#include<conio.h>
#include<stdio.h>
void main()
{
int n, m, i, j;
clrscr();
printf("\n Enter the No ");
scanf("%d",&n);
for( i = 1 ; i <= n ; i++ )
{
printf("\n%3d ", i);
m = i + n - 1;
for( j = 1 ; j < i ; j++ )
{
printf("%3d ", m);
m = m - j + n - 1;
}
}
getch();
}
Output:-
