Alphabet shapes 2 in C Programming

By | June 21, 2019

“Alphabet shapes 2 in C Programming” is a C program to display output in the form of a triangle shape containing alphabet pattern as shown in the following figure:

Alphabet shapes 2 in C Programming

Alphabet shapes 2 in C Programming

The source code of this C program about alphabet patterns in C programming is presented in the following code block.

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

Alphabet Pattern C Program in C programming

Leave a Reply

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