Time:09-24
CodePudding user response:
Console. WriteLine (" * "); Console. WriteLine (" * * * "); Console. WriteLine (" * * * * * ");
Console. WriteLine (" * * "); Console. WriteLine (" * * * * "); Console. WriteLine (" * * * * * * ");
Console. WriteLine (" * * * * * * "); Console. WriteLine (" * * * * ");
Quote: refer to 1st floor wanghui0380 response: Console. WriteLine (" * "); Console. WriteLine (" * * * "); Console. WriteLine (" * * * * * "); Wrong, it should be Console. WriteLine (" * * "); Console. WriteLine (" * * * * "); Console. WriteLine (" * * * * * * ");
String STR=""; For (int I=0; I & lt; 3; I++) {For (int j=0; J & lt; 6; J++) {If (j & gt;=3 - I - 1 & amp; J & lt;=I + 3) {STR +="*"; } The else {STR +=""; } } Console. WriteLine (STR); STR=""; } The Console. ReadLine ();
String STR=""; For (int I=0; I & lt; 3; I++) {For (int j=0; J & lt; 6; J++) {If (j & gt;=3 - I - 1 & amp; J & lt;=I + 3) {STR +="*"; } The else {STR +=""; } } Console. WriteLine (STR); STR=""; } The Console. ReadLine (); This should not answer, but this can realize I think I wrote this is brother
is the 13579 ah, cycle time plus two is not just a matter of when, have special requirements about
you want is isosceles trapezoid
you consider to use the 25,21,17,13 every four less Every time 0,2,4,6 + two empty
Page link:https//www.codepudding.com/net/26914.html