自己写的乘法算术表
using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; namespace test { class test { public static void Main() { for (int i = 1; i <= 9; i++) { Console.Write("{0,-2}|", i); for (int j = 1; j <= i; j++) { Console.Write("{0,3}", i * j); } Console.WriteLine(); } Console.WriteLine("__|______________________________"); Console.Write(" "); for (int k = 1; k <= 9; k++) { Console.Write("{0,3}", k); } Console.ReadKey(); } } }