Help me in solving LJAJAG30 problem

My issue

how to solve the problem

My code

#include<stdio.h>
main()
{
char i,j;
for(i='A';i<='E';i++)
{
for(j='E';j>i;j--)
 printf("  ");
 for(j='A';j<=i;j++)
}
for(j=i-1;j>='A';j--)
 printf("%c  ";j);
 printf("\n");
}
}

 


Learning course: Learn C Programming
Problem Link: https://www.codechef.com/learn/course/rcpit-programming-c/RCPITLPC37/problems/LJAJAG30