C# 输出九九乘法表
class Program { static void Main(string[] args) { for (int i = 1, j = 1; j <= 9; i++) { Console.Write(i + "*" + j + "=" + i * j + " "); if (i == j) { i = 0; j++; Console.WriteLine(); ; } } Console.Read(); } }
Be the change you want to see in the world.