第九次作业第二题

代码

namespace ConsoleApplication1

{

class Program

{

static void Main(string[] args)

  {

         for (int a = 1;a<=9;a++)

{

for(int b=1;b<=a;b++)

{

         Console.Write("{0}*{1}={2}", a,b,a*b);

}

           Console.WriteLine();

}

             Console.ReadKey();

}
}
}

效果

123.jpg

你可能感兴趣的:(第九次作业第二题)