for (int i = 1; i <= 9; i++) { for (int j = 1; j <= i; j++) { Console.Write("{0}*{1}={2}\t",j,i,i*j); } Console.WriteLine(); }
很简单的代码,这是做一个备忘。