关于九九乘法表中的一个小疑问
static void Main(string[] args)
{
string t = string.Empty;
for (int i = 1; i < 10; i++)
{
for (int j = 1; j <= i; j++)
{
t = string.Format("{0}×{1}={2} ", j, i, (j * i));
Console.Write(t);
if (j * i <10)
Console.Write(" ");
if (i == j)
Console.Write("\n");
}
}
Console.Write("press any key to exit...");
Console.ReadKey();
}