Alphabet Pattern 10 – Inverted Pyramid pattern using alphabets in C programming

Spread the love

Alphabet Pattern 10-Inverted Pyramid pattern using alphabets in C programming

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.

EDCBA
DCBA
CBA
BA
A

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=5;a>=1;a--)
    {
        for(b=a;b>=1;b--)
        {
            printf("%c",'A'-1 + b);
        }
        printf("n");
    }
 getch();
    return 0;
}

Number Series Programs in C programmming

Star Pattern Programs in C programmming

Number Pattern Programs in C programmming

Alphabet Pattern Programs in C programmming


Spread the love

Leave a Comment