C Programming
Computer Programming

Program in C to display the Reverse Triangular Word pattern



Write a Program in c to display the following Pattern

                A
            A B
        A B C
    A B C D
A B C D E

\* C Program to display the word pattern *\

# include < stdio.h >
int   main( )
{

int   i, j, r, k ;
char   ch ;
printf(" Enter the Number of row : ") ;
scanf("%d ", & r) ;
printf("\n Pattern are : \n\n") ;
for (  i = 1 ; i < = r ; i++ )
{

for (  k = r-i ; k > 0 ; k-- )
printf("    ") ;
ch = 65  ;

for (  j = 1 ; j < = i ; j++ )
{

printf(" %c", ch) ;
ch++  ;

}
printf(" \n ") ;

}
return ( 0 );

}

Output of Program :

Output of Program in C to display the word pattern