九九乘法表
1 using System; 2 using System.Collections.Generic; 3 using System.Linq; 4 using System.Text; 5 6 namespace 九九乘法表 7 { 8 class Program 9 { 10 static void Main(string[] args) 11 { 12 int i, j; 13 for (i = 1; i <= 9; i++) 14 { 15 for (j = 1; j <= i; j++) 16 Console.Write("{0}×{1}={2,2} ", j, i, i * j); 17 Console.WriteLine(); 18 } 19 Console.Read(); 20 } 21 } 22 }
输出结果: