class Program { static void Main(string[] args) { int a,b; for (a = 1; a <= 9;a++ ) { for (b = 1; b <= a;b++ ) { Console.Write(b+"x"+a+"="+a*b+" "); } Console.Write("\n"); } Console.ReadLine();
class Program { static void Main(string[] args) { int a,b; for (a = 1; a <= 9;a++ ) { for (b = 1; b <= a;b++ ) { Console.Write(b+"x"+a+"="+a*b+" "); } Console.Write("\n"); } Console.ReadLine();
转载于:https://www.cnblogs.com/nwj-0613/p/4704766.html