日期:2014-05-17 浏览次数:20797 次
for(int i=0;i<Cloumn;i++)
{
if(i==0
------解决方案--------------------
i==cloumn-1)
{
for(int j=0;j<cloumn;j++)
Console.Write(i.ToString());
Console.Write("\n");
}
else
{
for(int j=0;j<cloumn;j++)
{
if(j==i
------解决方案--------------------
j=cloumn-i)
Console.Write(i.ToString());
else Console.Write(" ");
}
Console.Write("\n");
}
}
int N=21;
StringBuilder sb=new StrringBuilder();
for(int i=1 i<= N ; i++)
{
StringBuilder s=new StringBuilder(new String(' ',N) );
if(i==1
------解决方案--------------------
i==N)
{
s.Replace(' ',(char)((int)'0'+1%/10));
}else
{
s[0]=(char)((int)'0'+1%/10);
s[N-1]=(char)((int)'0'+1%/10);