codemo

static void Main(string[] args)
        {      

            int i=1,j=1;
            while (i <= 9)
            {              
                while (j <= i)
                {                   
                    Console.Write("{0}*{1}={2}  ", i, j, i * j);
                    j++;
                   
                }
                i++; 
                j = 1;       //这个关键        
                Console.WriteLine();
            }
           
        }

分类:

技术点:

相关文章:

猜你喜欢
  • 2021-05-12
  • 2022-12-23
  • 2021-06-19
  • 2021-08-14
相关资源
相似解决方案