求解……才玩几天,最简单的东西都写不好
static void Main(string[] args){
int a = 0;
int b = 0;
int c = 0;
Console.WriteLine();
for (; a<=8;a++);
{
for (; c<a;c=c+1 )
{
for (; b<c; b++)
{
Console.Write("* ");
}
Console.WriteLine();
b = 0;
}
c = 0;
}
Console.Write("A="+a);
Console.Write(" B=" + b);
Console.WriteLine(" C=" + c);
for (a--; a<0; a--) ;
{
for (c=a; c>0; c--)
{
for (b=c; b>0; b--)
{
Console.Write("* ");
}
Console.WriteLine();
}
}
Console.WriteLine();
Console.WriteLine("终于成功打出一串星星 ^_^ ");
Console.WriteLine("妈B的错了好多次");
Console.ReadLine();
求解:第二个for大循环中,要a<0(假)才执行循环体?a>0直接跳出?
[此贴子已经被作者于2020-7-31 11:24编辑过]