Praveen | Typing Speed Test is a very useful Software available for free Download.

C Programs to Print Pyramid Patterns of Symboles

       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<stdio.h>
#include<conio.h>

void main()
{
int i, j, k, a=1, n;
clrscr();
printf("\n Enter the Line of Patterns ");
scanf("%d",&n);
for( i = 1 ; i <= n ; i++ )
{
    for( j = n-i ; j >= 1 ; j-- )
    {
        printf(" ");
     }
    for( k = 1 ; k <= a ; k++ )
    {
         printf("* ");
    }
    a++;
    printf("\n");
}
getch();
}

Output:-