3 solutions

  • 0
    @ 2024-10-29 15:34:31
    #include<stdio.h>
    int main()
    {  char a;
        scanf("%c",&a);
        for(int i=0;i<3;i++)
        {for(int j=3;j>i+1;j--)
        { printf(" ");
        }  for(int j=1;j<=2*i+1;j++)
        {
    printf("%c",a); }
        printf("\n");  }  return 0;
    }
    

    Information

    ID
    6715
    Time
    1000ms
    Memory
    128MiB
    Difficulty
    7
    Tags
    (None)
    # Submissions
    525
    Accepted
    128
    Uploaded By