Home > Back-end >  C how to edit this? O bosses help me to answer it
C how to edit this? O bosses help me to answer it

Time:09-29

Output of the following graphics (graphics rows by keyboard input)
A
A, b
A b c
A b c d

CodePudding user response:

For your reference
 
# include & lt; stdio.h>

Int main ()
{
Char ch='a';
Int I, j, n.
Printf (" input to print layers: \ n ");
The scanf (" % d ", & amp; n);

For (I=0; i{
for (j=0; jPrintf (" ");
for (j=0; j<=I; J++)
{
If (j==0)
Printf (" % c ", ch);
The else
Printf (" % c ", ch + j).
}
printf("\n");

}

Getchar ();
return 0;
}

CodePudding user response:

my child is still very shallow, all don't understand, this code, to learn one

CodePudding user response:

Play Spaces and line breaks

CodePudding user response:

Thanks for big help, get it
  • Related