Alphabet Pattern 12-Inverted Pyramid pattern using alphabets in C programming
In this program, we will see the Inverted Pyramid pattern using alphabets in C programming language. Please look into the program.
ABCDE BCDE CDE DE E
The C program for the Inverted Pyramid or triangle pattern using alphabets is as follows:
#include <stdio.h> int main() { int a, b; for(a=1;a<=5;a++) { for(b=a;b<=5;b++) { printf("%c", 'A'-1 + b); } printf("n"); } getch(); return 0; }