Example 1 — Fixed top at 'E'
Hard-coded top — outer loop picks the start; inner loop prints forward to 'E'.
#include <stdio.h>
int main(void)
{
char i, j;
for (i = 'E'; i >= 'A'; i--)
{
for (j = i; j <= 'E'; j++)
printf("%c", j);
printf("\n");
}
return 0;
} How It Works
1. Outer loop moves the start. i runs from 'E' down to 'A' — one row per start letter.
2. Inner loop runs forward. From i up to 'E', so when i = 'C' you get CDE.
3. Right edge stays fixed. Every row ends at 'E'; only the left edge grows leftward.
4. Break the line. printf("\n") after the letter loop starts the next earlier start.

