Home > Back-end >  How do you write this
How do you write this

Time:06-06

CodePudding user response:

More simple, direct line seven printf

Try to write yourself, have questions to ask, is not difficult

CodePudding user response:

Fun
reference 1 floor response:
more simple, direct line seven printf

Try to write yourself, have a question to ask, it is not hard to

The requirement for written in loop statement..

CodePudding user response:

for(i=0; i<7. I++) {
If (0==I) printf (" A ");
The else (1==I) printf (" BCD ");
,,,,,,,,,
}




A joke ha

To this
Int main (int arg c, char * argv []) {
Int ch='A';
Int I, j;
For (I=0; i<7. I++) {
If (i<{
=3)for (j=0; J<3 - I; J++) printf (" ");
for (j=0; J<2 * I + 1; J++) printf (" % c ", ch++); printf("\n");
} else {
for (j=0; Jfor (j=0; J<(6 - I) * 2 + 1; J++) printf (" % c ", ch++); printf("\n");
}
}
return 0;
}
v

CodePudding user response:

Homework to finish their own independent is better, help you write the upper part, lower part to get yourself!

CodePudding user response:

I hope it can help you: https://blog.csdn.net/it_xiangqiang/category_10581430.html
I hope it can help you: https://blog.csdn.net/it_xiangqiang/category_10768339.html
  • Related