Making an alphabet triangle in C

We can make an alphabet triangle using C programming language. We know that every alphabet has an ASCII value of decimal number. We will use this concept to print a triangle in C. Now, we will write a program which will print the following output.

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

So, let’s see the program bellow to print such output using C programming language.

C program to print an alphabet triangle

//  code here

Output of the alphabet triangle program

alphabet triangle in c program

Previous pageNumber  triangle

Next pageArmstrong numbers