偶也试着编了一个玩玩,大家看看如何
#include "stdio.h"
main()
{
char a;
int i,j,u;
printf("\n******************Welcome To Use Landlord Program********************\n ");
printf("\n--------This is a program of output some letter-------------");
printf("\nInput the last letter: ");
scanf("%c",&a);
if(a<91)
u=a-65;
else u=a-97;
for(i=0;i<u;i++)
{
for(j=0;j<u-i;j++)
printf(" ");
for(j=0;j<2*i+1;j++)
print-=f("%c",a-u+i);
printf("\n");
}
for(i=u;i>=0;i--)
{
for(j=u-i;j>0;j--)
printf(" ");
for(j=2*i+1;j>0;j--)
printf("%c",a-u+i);
printf("\n");
}
getch();
}
##今日不签名·#¥!!!