2020-01-23

C# 99乘法表

using System;

namespace ConsoleApplication
{
    class Program
    {
        static void Main(string[] args)
        {
            for (int i = 2 ; i <= 9; i++)
            {
                for (int j = 1; j <= 9; j++)
                {
                    Console.Write( i + "*" + j + "=" + (i * j).ToString("00") + " " );
                }
                Console.Write("\r\n");
            }
            Console.ReadLine();
        }
    }
}

沒有留言:

張貼留言