/**********************************************************
* C Program to print Half Pyramid pattern using alphabets
**********************************************************/
#include<stdio.h> // include stdio.h
int main()
{
int n, ch = 'A';
printf("Enter number of lines: \n");
scanf("%d", &n);
printf("\n");
// loop for line number of lines
for(int i = 1; i <= n; i++)
{
// loop to print alphabets
for(int j = 1; j <= i; j++)
{
printf(" %c", ch);
}
ch++;
printf("\n");
}
return 0;
}