C# 基礎練習之一 打印乘法表格

基礎學習 非常重要

namespace ConsoleApplication1
{
    class Program
    {
        static void Main(string[] args)
        {
        
         int i,j;

         for (i = 1; i < 10; i++)
         {
              for(j=1 ;j <= i; j++) 
             {
                 Console.Write(i + "*" + j + "=" + i * j + ';');
             }
              Console.Write("\n");
         }
          Console.ReadKey();  
        }
    }
}

 

發表評論
所有評論
還沒有人評論,想成為第一個評論的人麼? 請在上方評論欄輸入並且點擊發布.
相關文章