Alphabet pattern program

Print following alphabet pattern
AAAAA
BBBB
CCC
DD
E

#include <stdio.h>

int main()
{
    int j,k;
    for(j=1;j<=5;j++)
    {
        for(k=5;k>=j;k--)
        {
            printf("%c",'A'-1 + j);
        }
        printf("\n");
    }
}
Copyright © C Program | Java | OpenGL Programming | Hadoop at Computaholics