1 using System; 2 using System.Collections.Generic; 3 using System.Linq; 4 using System.Text; 5 6 namespace _9x9乘法口诀 7 { 8 class Program 9 { 10 static void Main(string[] args) 11 { 12 int i, j; 13 /*可以没有注释的部分 14 int[,] a = new int[9, 9]; 15 for(i=0;i<9;i++) 16 for (j = 0; j <= i; j++) 17 { 18 a[i, j] = (i + 1) * (j + 1); 19 } 20 */ 21 for (i = 1; i <= 9; i++) 22 { 23 for (j = 1; j <= i; j++) 24 { 25 Console.Write(i + "*" + j + "=" + i * j + ' '); 26 } 27 Console.WriteLine(); 28 } 29 Console.ReadLine(); 30 } 31 } 32 }