for (int i = 1; i < 10; i++) { Console.WriteLine("\n"); for (int b = 1; b <= i; b++) { Console.Write("{0}*{1}={2}\t", i, b, i * b); } } Console.ReadKey();
时间: 2024-10-12 08:35:52
for (int i = 1; i < 10; i++) { Console.WriteLine("\n"); for (int b = 1; b <= i; b++) { Console.Write("{0}*{1}={2}\t", i, b, i * b); } } Console.ReadKey();