C#版--9*9乘法口訣表

iamzxf發表於2015-03-24
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

namespace dataOper
{
    class Program
    {
        static void Main(string[] args)
        {
            for (int i = 1; i < 10; i++)
            {
                for (int j = 1; j <= i; j++)
                    Console.Write("{0,2}*{1}={2,2}", i, j, i * j);
                Console.WriteLine();
            }
            Console.ReadLine();
        }
    }
}

相關文章