A B C D E F G F E D C B A A B C D E F F E D C B A A B C D E E D C B A A B C D D C B A A B C C B A A B B A A A
#include <stdio.h>
int main (int argc, const char * argv[])
{
int j,k,l;
for (int i=1; i<=7; i++)
{
for (j=65; j<=71-(i-1); j++)
{
printf(" %c",j);
}
for ( k=1; k<=(i-1); k++)
{
printf(" ");
printf(" ");
if (k>1)
{
printf(" ");
printf(" ");
}
}
for (l=71-(i-1); l>=65; l--)
{
if (l==71)
{
continue;
}
printf(" %c",l);
}
printf("\n");
}
return 0;
}
0 comments:
Post a Comment