循环:
例如打印九九乘法表:
for (int x = 1; x <= 9; x++) { for (int y = 1; y <= x; y++) { Console.Write($"{y}x{x}={x * y}\t"); } Console.WriteLine("\n"); } Console.WriteLine("请按任意键退出"); Console.ReadLine();
2022-09-04 17:30:14
循环:
例如打印九九乘法表:
for (int x = 1; x <= 9; x++) { for (int y = 1; y <= x; y++) { Console.Write($"{y}x{x}={x * y}\t"); } Console.WriteLine("\n"); } Console.WriteLine("请按任意键退出"); Console.ReadLine();