Keep on going never give up.

Let's Go

C#【练习】九九乘法表

C#Lonely2019-05-20 01:44:46121次0条

for (int i = 1; i < 10; i++)
{
    for (int j = 1; j <= i; j++)
    {
        Console.Write("{0}*{1}={2} \t", j, i, j * i);
    }
    Console.WriteLine();
}
Console.ReadKey();

运行结果:

image.png

暗锚,解决锚点偏移

文章评论

    嘿,来试试登录吧!