关于使用C#编写 九九乘法表

using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

namespace ConsoleApplication1
{
         class Program
         {

                  static void Main(string[] args)

                  {
                           for (int a = 1; a <= 9; a++)
                           {
                                    for (int b = 1; b <= a; b++)
                                     {
                                             Console.Write(a + "*" + b + "=" + a * b + "\t");
                                     }
                                    Console.WriteLine();

                           }
                           Console.ReadLine();
                  }

         }
}

posted @ 2017-12-10 21:26  A谭智天  阅读(344)  评论(0编辑  收藏  举报