【CSharp】九九乘法口诀表实现

using System;

using System.Collections.Generic;

using System.Linq;

using System.Text;

 

namespace MultiplicationTable

{

    class Program

    {

        static void Main(string[] args)

        {

            Console.WriteLine("九九乘法口诀表打印如下:");

 

            for (int j = 1; j <= 9; j++)

            {

                for (int i = 1; i <= j; i++)

                    Console.Write(i + " x " + j + " = {0}\t", i * j);

 

                Console.WriteLine();

            }

            Console.ReadLine();

        }

    }

}

你可能感兴趣的:(C#篇)