Alphabet Pattern 2-Pyramid or triangle pattern using alphabets in C programming
In this program, we will see the Pyramid or triangle pattern using alphabets in C programming language. Please look into the program.
A BA CBA DCBA EDCBA
The C program for 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>=1;b--) { printf("%c",'A' + b-1); } printf("n"); } getch(); return 0; }