乘法表

class Program
    {
        static void Main(string[] args)
        {
            int a,b;

            for (a = 1; a <= 9;a++ )
            {
                for (b = 1; b <= a;b++ )
                {
                    Console.Write(b+"x"+a+"="+a*b+" ");                    
                }    
           
                Console.Write("\n");
            }    
      
            Console.ReadLine();

 

posted @ 2015-08-05 15:09  大魔王·牛头  阅读(96)  评论(0)    收藏  举报