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-12-26 07:20:01
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();