C Pattern program in C

I want to draw following pattern in C. So kindly provide solution as early as possible.

ABCD
BCD
CD
D

Dear @Mohit_Joshi, please have a look at this solution.

#include<stdio.h>   
int main()
{
    int i,j,n;
 
    printf("Enter the no of lines\n");
    scanf("%d",&n);
 
    for(i=1;i<=n;i++)
    {
        for(j=i;j<=n;j++)
        {
            printf("%c",(char)(j+64));
        }
        printf("\n");
    }
}
2 Likes