/* C program to print right half pyramid pattern of
 letters */
#include <stdio.h>

int main()
{
    int rows = 5;

    // first loop for printing rows
    for (int i = 0; i < rows; i++) {

        // second loop for printing letters in each rows
        for (int j = 0; j <= i; j++) {
            printf("%c ", 'A' + j);
        }
        printf("\n");
    }
    return 0;
}
