Alphabet Triangle Pattern in C Programming

By | June 21, 2019

“Print Alphabet ABCDE Pattern in C Programming” is a basic C program to print triangle of ABCDE alphabets as shown in the following figure:

Alphabet triangle pattern 1 in C programming

Alphabet triangle pattern 1 in C programming

The source code of alphabet triangle in C programming is as follows:

/*
Write a C program to print alphabet pattern
triangle as shown below
A
AB
ABC
ABCD
ABCDE
*/
#include<stdio.h>  
int main()   
{   
  int row, col;  
  for( row = 65; row <=69;row++)
  {
  	for(col=65 ; col<=row; col++)
	   printf("%c",col);   
  	printf("\n");
  }
  return 0;
}  

Here is an image to show the sample run and ouput of this Alphabet pattern triangle in C programming:

Here is an image to show the sample run and ouput of this Alphabet pattern triangle in C programming:

Here is an image to show the sample run and ouput of this Alphabet pattern triangle in C programming:

Leave a Reply

Your email address will not be published. Required fields are marked *