#include <stdio.h>
int main()
{
int i,j,k,n;
char ch,m;
m = 'A';
printf("输入一个大写字母:");
scanf("%c",&ch);
for (i = 1;i <= ch-64;i++)
{
for (j =ch-64;j>=i;j--)
printf(" ");
for (k= 1;k<= i;k++,m++)
printf("%c",m);
m = m-2;
for (n =1;n<= i-1;n++,m--)
printf("%c",m);
m = 'A';