c#九九乘法表




代码:

            for (int i = 1; i <= 9;i++ )
            {
                for (int j = 1; j <= i;j++ )
                {
                    Console.Write("{0}X{1}={2:00}   ",j,i,i*j);
                }
                Console.WriteLine("       ");
            }
            Console.ReadKey();


效果图如下:


你可能感兴趣的:(总结,C#,.net,string,基础)