#include<stdio.h>
int main()
{
    int n,i,j;
    char ch;
    printf("enter the no of rows:");
    scanf("%d%c",&n,&ch);
    printf("enter the symbol:");
    ch=getchar();
    for(i=1;i<=n;i++)
    {
        for(int j=1;j<=n;j++)
        {
        printf("");
        }
        for(j=1;j<=i;j++)
        {
        printf("\n");
        }
    }
    for(i=n-1;i>0;i--)
    {
        for(int j=1;j<=n-1;j++)
        {
            printf("");
        }
        for(j=1;j<=i;j++)
        {
            printf("%c",ch);
        }
        printf("\n");
    }
}