美文网首页
第九次作业第二题

第九次作业第二题

作者: 孤独是种安全感_b7bf | 来源:发表于2018-11-21 17:21 被阅读0次

代码

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

相关文章

网友评论

      本文标题:第九次作业第二题

      本文链接:https://www.haomeiwen.com/subject/dvwcqqtx.html