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

C Programs to Print 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, n;
 clrscr();
 printf("\n Enter The row of No allways Even ");
 scanf("%d",&n);
 n= ( n+1 ) /2;
 for( i = 0 ; i < n ; i++ )
 {
    for( j = 0 ; j <= i ; j++ )
        printf(" ");
    printf("*");
    for( j = 2*n ; j > 2*( i+1 ) ; j-- )
        printf(" ");
    printf("@\n");
 }
 printf(" ");
 for( j = 0 ; j < n ; j++ )
    printf("*");
 for( j = 0 ; j < n ; j++ )
    printf("@");
 printf("\n");
 for( i = 0 ; i < n ; i++ )
 {
    for( j = 0 ; j < ( n - i ) ; j++ )
        printf(" ");
    printf("*");
    for( j = 0 ; j < 2*i ; j++ )
        printf(" ");
    printf("@\n");
 }
 getch();
 }


Output:-