1.我们先看看效果:
2.下面是主要代码内容:
using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; namespace ConsoleApplication1 { class Program { static void Main(string[] args) { //九九乘法表 for (int i = 1; i <= 9; i++) { for (int j = 1; j <= i; j++) { Console.Write(i + "*" + j + "=" + i * j); Console.Write(" "); } Console.WriteLine(); } Console.ReadKey(); } } }