您的位置:首页 > 编程语言 > C#

九九乘法表 c#

2013-02-27 20:19 197 查看
        

using System;

using System.Collections.Generic;

using System.Linq;

using System.Text;

namespace ConsoleApplication2

{

    class Program

    {

        static void Main(string[] args)

        {

 

    #region 九九乘法表

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

            {

                for (int j = 1; j <= i; j++)

                {

                  

                        Console.Write(j + "*" + i + "=" + i * j+"  ");

                       

                  

               

                }

                Console.WriteLine("\n");

            }

            #endregion

                Console.ReadKey();

        }

    }

}
内容来自用户分享和网络整理,不保证内容的准确性,如有侵权内容,可联系管理员处理 点击这里给我发消息
标签: