Home > Net >  Write a c # programming was printed in * isosceles trapezoid
Write a c # programming was printed in * isosceles trapezoid

Time:09-24

Here a great god for help to reassure

CodePudding user response:

 Console. WriteLine (" * "); 
Console. WriteLine (" * * * ");
Console. WriteLine (" * * * * * ");

CodePudding user response:

reference 1st floor wanghui0380 response:
 Console. WriteLine (" * "); 
Console. WriteLine (" * * * ");
Console. WriteLine (" * * * * * ");

Wrong, it should be
 
Console. WriteLine (" * * ");
Console. WriteLine (" * * * * ");
Console. WriteLine (" * * * * * * ");

CodePudding user response:

 
Console. WriteLine (" * * * * * * ");
Console. WriteLine (" * * * * ");

CodePudding user response:

For ()
{
For ()
{

}
}

CodePudding user response:

reference 1st floor wanghui0380 response:
 Console. WriteLine (" * "); 
Console. WriteLine (" * * * ");
Console. WriteLine (" * * * * * ");

must use loop statement

CodePudding user response:

refer to the second floor small young programmers don's reply:
Quote: refer to 1st floor wanghui0380 response:

 Console. WriteLine (" * "); 
Console. WriteLine (" * * * ");
Console. WriteLine (" * * * * * ");

Wrong, it should be
 
Console. WriteLine (" * * ");
Console. WriteLine (" * * * * ");
Console. WriteLine (" * * * * * * ");


must use loop statement

CodePudding user response:

refer to the second floor small young programmers don's reply:
Quote: refer to 1st floor wanghui0380 response:

 Console. WriteLine (" * "); 
Console. WriteLine (" * * * ");
Console. WriteLine (" * * * * * ");

Wrong, it should be
 
Console. WriteLine (" * * ");
Console. WriteLine (" * * * * ");
Console. WriteLine (" * * * * * * ");


must use loop statement

CodePudding user response:

Is the 13579 ah, circulation plus two is not just a matter of every time, when there are special requirements

CodePudding user response:

 
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

CodePudding user response:

The
reference young programmer, 9/f, small don's reply:
 
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

this will surely not qualified

CodePudding user response:

refer to the eighth floor u014480075 response:
is the 13579 ah, cycle time plus two is not just a matter of when, have special requirements about

There are a total of five lines
The first line should have 9 *
The fifth line to have 25 *

CodePudding user response:

You want is isosceles trapezoid

CodePudding user response:

The
refer to 12 floor Summer_djz reply:
you want is isosceles trapezoid

Uh uh uh huh
Yes, a great god
Is there any code

CodePudding user response:

The
refer to 12 floor Summer_djz reply:
you want is isosceles trapezoid

There are a total of five lines
The first line should have 9 *
The fifth line to have 25 *

CodePudding user response:

You consider to use the
25,21,17,13 every four less
0,2,4,6 + two empty every time

CodePudding user response:

reference 15 floor Summer_djz response:
you consider to use the
25,21,17,13 every four less
Every time 0,2,4,6 + two empty

Great god answers please please genuflect is begged

CodePudding user response:

///
///output trapezoidal
///

///
  •  Tags:  
  • C #
  • Related