C#迴圈

weixin_34088583發表於2017-04-15

422101-20170415182405814-953536990.png

using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace Demo
{
    class Program
    {
        static void Main(string[] args)
        {
            int i = 1;
            while (i<=10)
            {
                Console.WriteLine("{0}",i++);
            }

            Console.ReadKey();
        }
    }
}

相關文章