Search C Program | nimishsoft@gmail.com

Alphabet Pattern - 3

A
BA
CBA
DCBA
EDCBA


#include <stdio.h>

int main()
{
    int i, j;
    for(i=1;i<=5;i++)
    {
        for(j=i;j>=1;j--)
        {
            printf("%c",'A' + j-1);
        }
        printf("\n");
    }

    return 0;
}

3 comments:

  1. sir it is not run on my turbo c compiler

    ReplyDelete
    Replies
    1. your are donkey if do not run your programmme

      Delete
    2. you are madarchod randi ka bacha

      Delete