#include <stdio.h>

int main() 
{
    char a;
    int x,m=1;
    scanf("%c",&a);
    scanf("%d",&x);
    for(int i=0;i<x;i++)
    {
        for(int j=0;j<x-1-i;j++)
        {
            printf(" ");
        }
        for(int k=0;k<i+m;k++)
        {
            printf("%c",a);
        }
        m++;
        printf("\n");
    }
}

Embed on website

To embed this project on your website, copy the following code and paste it into your website's HTML: