Print alphabet right angle triangle pattern - C

Write a C program to generate the following pattern:

alphabet triangle

Solution:

#include<stdio.h>
int main()
{
      char i,j,k,l;
      for(i='A',j='a';j<='d';i++,j++)
      {
            for(k='A',l='a';k<=i;k++,l++)
            {
                  printf("%c%c ",k,l);
            }
            printf("\n");
      }
      return 0;
}


Output:

alphabet right angle triangle