Home > Back-end >  C language selected 32 items
C language selected 32 items

Time:09-23

Today's homework is this, come on!

CodePudding user response:

Come on, learn to make us happy, ha ha

CodePudding user response:

CodePudding user response:

CodePudding user response:

 
# include & lt; Stdio. H>

Int pt (int sign)
{
Char y='A';

Y=y + sign - 1;

for(; Sign> 1; Sign -)
{
Printf (" % c ", y);
}

return 0;
}

Int main ()
{
int i=0;
int j=0;
Int z=0;
Int n=0;

Char x='A';

The scanf (" % d ", & amp; N);

for (; i{
For (j=n - I; J> 1; J -)
{
Printf (" ");
}

If (I==0)
{
Printf (" A ");
}

Pt (I + 1);

if(i!=0)
{
Printf (" % c ", x + 1);
}

Pt (I + 1);

X=x + 1;

printf("\n");
}

return 0;
}


The code can also be simplified
  • Related